I have on my stystem 'Ubuntu 16.04.2 arch x86_64' The kernel modules nvidia-340.ko & nvidia_340_uvm.ko (DKMS). With kernel 4.10.0-14-generic.
I modified the patch-file 'buildfix_kernel_4.9.patch' at line 55: Orginal: + page_count, write ? FOLL_WRITE : 0, user_pages, NULL); Modified:+ page_count, write ? FOLL_WRITE : 0, force, user_pages, NULL);
Than in a terminal (kernel 4.8.0-34-generic): sudo dkms build -m nvidia-340 -v 340.102 -k 4.10.0-14-generic and sudo dkms install -m nvidia-340 -v 340.102 -k 4.10.0-14-generic
Attachemnt the modified 'buildfix_kernel_4.9.patch' patch-file:
I have on my stystem 'Ubuntu 16.04.2 arch x86_64'
The kernel modules nvidia-340.ko & nvidia_340_uvm.ko (DKMS).
With kernel 4.10.0-14-generic.
I modified the patch-file 'buildfix_ kernel_ 4.9.patch' at line 55:
Orginal: + page_count, write ? FOLL_WRITE : 0, user_pages, NULL);
Modified:+ page_count, write ? FOLL_WRITE : 0, force, user_pages, NULL);
Than in a terminal (kernel 4.8.0-34-generic):
sudo dkms build -m nvidia-340 -v 340.102 -k 4.10.0-14-generic
and
sudo dkms install -m nvidia-340 -v 340.102 -k 4.10.0-14-generic
Attachemnt the modified 'buildfix_ kernel_ 4.9.patch' patch-file: