diff --git a/srcpkgs/nvidia/patches/nvidia-uvm8_va_block-linux_4_14_9.patch b/srcpkgs/nvidia/patches/nvidia-uvm8_va_block-linux_4_14_9.patch new file mode 100644 index 00000000000..f9fae492b84 --- /dev/null +++ b/srcpkgs/nvidia/patches/nvidia-uvm8_va_block-linux_4_14_9.patch @@ -0,0 +1,17 @@ +Since linux-4.14.9 there has been some kernel headers reordering. +Fix that issue by including linux/sched/task_stack.h for kernels +newer than 4.14.9. + +--- NVIDIA-Linux-x86_64-384.98-no-compat32/kernel/nvidia-uvm/uvm8_va_block.c 2017-10-27 01:19:54.000000000 +0200 ++++ NVIDIA-Linux-x86_64-384.98-no-compat32/kernel/nvidia-uvm/uvm8_va_block.c 2018-01-02 02:50:05.260588964 +0100 +@@ -36,6 +36,10 @@ + #include "uvm8_perf_prefetch.h" + #include "uvm8_mem.h" + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,9) ++#include ++#endif ++ + typedef enum + { + BLOCK_PTE_OP_MAP, diff --git a/srcpkgs/nvidia/template b/srcpkgs/nvidia/template index 8143dfe5ab6..854bad7bb0d 100644 --- a/srcpkgs/nvidia/template +++ b/srcpkgs/nvidia/template @@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux (long-lived series)" pkgname=nvidia version=384.98 -revision=2 +revision=3 maintainer="Juan RP " license="Proprietary NVIDIA license" homepage="http://www.nvidia.com"