From 7008937eff5c13cfd17911b6d7c4daf75b26c39c Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Fri, 29 Dec 2017 22:02:33 +0000 Subject: [PATCH] xf86-video-nvidia: fix build with 4.14.9 --- .../xf86-video-nvidia-0100-kernel-4.14.9.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/x11/driver/xf86-video-nvidia/patches/xf86-video-nvidia-0100-kernel-4.14.9.patch diff --git a/packages/x11/driver/xf86-video-nvidia/patches/xf86-video-nvidia-0100-kernel-4.14.9.patch b/packages/x11/driver/xf86-video-nvidia/patches/xf86-video-nvidia-0100-kernel-4.14.9.patch new file mode 100644 index 0000000000..d44663e8f4 --- /dev/null +++ b/packages/x11/driver/xf86-video-nvidia/patches/xf86-video-nvidia-0100-kernel-4.14.9.patch @@ -0,0 +1,15 @@ +diff --git a/kernel/nvidia-uvm/uvm8_va_block.c b/kernel/nvidia-uvm/uvm8_va_block.c +index 99f6f9b..a453eb6 100644 +--- a/kernel/nvidia-uvm/uvm8_va_block.c ++++ b/kernel/nvidia-uvm/uvm8_va_block.c +@@ -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,