nvidia: add patch for dkms for linux>=4.14.9

This commit is contained in:
Jürgen Buchmüller 2018-01-02 02:56:08 +01:00
parent 5257274f02
commit a20498bce7
2 changed files with 18 additions and 1 deletions

View File

@ -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 <linux/sched/task_stack.h>
+#endif
+
typedef enum
{
BLOCK_PTE_OP_MAP,

View File

@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux (long-lived series)"
pkgname=nvidia
version=384.98
revision=2
revision=3
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Proprietary NVIDIA license"
homepage="http://www.nvidia.com"