Mainline On Metal
NVIDIA Drivers 384.98 vs. Linux Kernel 4.14.0

Problem: NVIDIA drivers run into a little bit of an issue building against the 4.14.0 kernel release.

In file included from /mnt/gentoo/usr/src/linux/arch/x86/include/asm/cpufeature.h:5:0,
                 from /mnt/gentoo/usr/src/linux/arch/x86/include/asm/thread_info.h:53,
                 from /mnt/gentoo/usr/src/linux/include/linux/thread_info.h:38,
                 from /mnt/gentoo/usr/src/linux/arch/x86/include/asm/preempt.h:7,
                 from /mnt/gentoo/usr/src/linux/include/linux/preempt.h:81,
                 from /mnt/gentoo/usr/src/linux/include/linux/spinlock.h:51,
                 from /mnt/gentoo/usr/src/NVIDIA-Linux-x86_64-384.98/kernel/common/inc/nv-lock.h:16,
                 from /mnt/gentoo/usr/src/NVIDIA-Linux-x86_64-384.98/kernel/common/inc/nv-linux.h:19,
                 from /mnt/gentoo/usr/src/NVIDIA-Linux-x86_64-384.98/kernel/nvidia-uvm/uvm_linux.h:39,
                 from /mnt/gentoo/usr/src/NVIDIA-Linux-x86_64-384.98/kernel/nvidia-uvm/uvm8_va_block.c:24
/mnt/gentoo/usr/src/NVIDIA-Linux-x86_64-384.98/kernel/nvidia-uvm/uvm8_va_block.c: In function 'block_cpu_fault_locked':
/mnt/gentoo/usr/src/linux/arch/x86/include/asm/processor.h:811:39: error: implicit declaration of function 'task_stack_page'; did you mean 'task_stack_vm_area'? [-Werror=implicit-function-declaration]
  unsigned long __ptr = (unsigned long)task_stack_page(task); \
                                       ^

Resolution: This fix is pretyt simple. Just get the correct header included where the code can find it. I'm not sure if this is the best position for the header, but it gets the job done.



 
Last updated: November 24, 2017