/usr/src/linux-4.12.14-lp151.28.83/include/linux/vmstat.h: In function ‘zone_page_state_snapshot’:
/usr/src/linux-4.12.14-lp151.28.83/include/linux/cpumask.h:255:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(cpu) < nr_cpu_ids;)
^
/usr/src/linux-4.12.14-lp151.28.83/include/linux/cpumask.h:790:36: note: in expansion of macro ‘for_each_cpu’
#define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
^~~~~~~~~~~~
/usr/src/linux-4.12.14-lp151.28.83/include/linux/vmstat.h:210:2: note: in expansion of macro ‘for_each_online_cpu’
for_each_online_cpu(cpu)
^~~~~~~~~~~~~~~~~~~
/usr/src/linux-4.12.14-lp151.28.83/include/linux/vmstat.h: In function ‘node_page_state_snapshot’:
/usr/src/linux-4.12.14-lp151.28.83/include/linux/cpumask.h:255:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(cpu) < nr_cpu_ids;)
^
/usr/src/linux-4.12.14-lp151.28.83/include/linux/cpumask.h:790:36: note: in expansion of macro ‘for_each_cpu’
#define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
^~~~~~~~~~~~
/usr/src/linux-4.12.14-lp151.28.83/include/linux/vmstat.h:226:2: note: in expansion of macro ‘for_each_online_cpu’
for_each_online_cpu(cpu)
^~~~~~~~~~~~~~~~~~~
In file included from /tmp/selfgz1627/NVIDIA-Linux-x86_64-340.58/kernel/nv.c:13:0:
/tmp/selfgz1627/NVIDIA-Linux-x86_64-340.58/kernel/nv-linux.h: At top level:
/tmp/selfgz1627/NVIDIA-Linux-x86_64-340.58/kernel/nv-linux.h:199:2: error: #error "This driver requires the ability to change memory types!"
#error "This driver requires the ability to change memory types!"
^~~~~
/tmp/selfgz1627/NVIDIA-Linux-x86_64-340.58/kernel/nv.c: In function ‘nvidia_unlocked_ioctl’:
/tmp/selfgz1627/NVIDIA-Linux-x86_64-340.58/kernel/nv.c:1842:31: error: ‘struct file’ has no member named ‘f_dentry’; did you mean ‘f_owner’?
return nvidia_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
^~~~~~~~
f_owner
make[3]: *** [/usr/src/linux-4.12.14-lp151.28.83/scripts/Makefile.build:325: /tmp/selfgz1627/NVIDIA-Linux-x86_64-340.58/kernel/nv.o] Error 1
make[2]: *** [/usr/src/linux-4.12.14-lp151.28.83/Makefile:1575: _module_/tmp/selfgz1627/NVIDIA-Linux-x86_64-340.58/kernel] Error 2
make[2]: Leaving directory '/usr/src/linux-4.12.14-lp151.28.83-obj/x86_64/default'
make[1]: *** [Makefile:152: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-4.12.14-lp151.28.83'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:179: nvidia.ko] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.