summaryrefslogtreecommitdiff
path: root/sys-kernel/nvidia-drivers-dkms
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-12-29 21:23:58 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-12-29 21:23:58 +0000
commite47e40d4da273cedfc0f60a0e25566a19fc2e6fc (patch)
tree83ee6ca0270255a589d681397c861b840a2cb30e /sys-kernel/nvidia-drivers-dkms
parente54e496327944a6a95b6cf125138b72c856c8f54 (diff)
sys-kernel/nvidia-drivers-dkms : fix compiling with kernel > 4.14.9
Diffstat (limited to 'sys-kernel/nvidia-drivers-dkms')
-rw-r--r--sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-384.98-kernel-4.14.9.patch14
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-384.98-r3.ebuild (renamed from sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-384.98-r2.ebuild)3
2 files changed, 16 insertions, 1 deletions
diff --git a/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-384.98-kernel-4.14.9.patch b/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-384.98-kernel-4.14.9.patch
new file mode 100644
index 00000000..89ad2df3
--- /dev/null
+++ b/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-384.98-kernel-4.14.9.patch
@@ -0,0 +1,14 @@
+diff -durN a/kernel/nvidia-uvm/uvm8_va_block.c b/kernel/nvidia-uvm/uvm8_va_block.c
+--- a/kernel/nvidia-uvm/uvm8_va_block.c 2017-12-26 11:20:17.097715622 +0100
++++ b/kernel/nvidia-uvm/uvm8_va_block.c 2017-12-26 11:20:29.674381760 +0100
+@@ -36,6 +36,10 @@
+ #include "uvm8_perf_prefetch.h"
+ #include "uvm8_mem.h"
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,9)
++#include <linux/sched/task_stack.h>
++#endif
++
+ typedef enum
+ {
+ BLOCK_PTE_OP_MAP,
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-384.98-r2.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-384.98-r3.ebuild
index 7247e72f..6c7d4f2c 100644
--- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-384.98-r2.ebuild
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-384.98-r3.ebuild
@@ -28,7 +28,8 @@ src_unpack() {
}
src_prepare() {
- epatch ${FILESDIR}/${P}-conf.patch
+ epatch ""${FILESDIR}"/"${P}"-conf.patch"
+ epatch ""${FILESDIR}"/"${P}"-kernel-4.14.9.patch"
}
src_install() {