Hey there,

I created a patch which updates os-mlock.c to adjust for the changes
made on the kernel-side in get_user_pages() (include/linux/mm.h).
However, I do not have a deep understanding of why the first 2
parameters of get_user_pages() were removed which is why this solution
needs to be tested thoroughly. The patch was done for nvidia-driver
v340.96 as this is the version I use on my system. However, the patch
might also be applicable for newer releases of the nvidia driver. After
applying the patch an additional "sudo dpkg-reconfigure nvidia-legacy-
340xx-kernel-dkms" was enough to get the kernel module to work. The
patch must me applied inside /usr/src/nvidia-legacy-340xx-340.96 (I am
on debian - the actual path on ubuntu could be different). I hope I
could help.

Cheers, chris

** Patch added: "Patch for os-mlock.c"
   
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-361/+bug/1573508/+attachment/4669362/+files/fix-os-mlock.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1573508

Title:
  nvidia-361 361.42-0ubuntu2: nvidia-361 kernel module failed to build
  [error: too many arguments to function ‘get_user_pages’]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1573508/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to