I'm using Lubuntu 16.04 x86-64 with kernel 4.7.1 from http://kernel.ubuntu.com/~kernel-ppa/mainline/ and the 304-series Nvidia driver.
I solved this problem without needing to manually apply patches, by downloading and installing the current nvidia-304 package for 16.10: https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/304.131-0ubuntu5/+build/10627168/+files/nvidia-304_304.131-0ubuntu5_amd64.deb Same success with the 340-series driver from https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/340.96-0ubuntu6/+build/9872860/+files/nvidia-340_340.96-0ubuntu6_amd64.deb Can someone at Canonical just update the nvidia-304 & nvidia-340 etc. packages for Xenial to the ones for Yakkety (16.10)? They seem to work fine. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to nvidia-graphics-drivers-304 in 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’] Status in nvidia-graphics-drivers-304 package in Ubuntu: Confirmed Status in nvidia-graphics-drivers-340 package in Ubuntu: Confirmed Status in nvidia-graphics-drivers-361 package in Ubuntu: Confirmed Bug description: NA ProblemType: Package DistroRelease: Ubuntu 16.04 Package: nvidia-361 361.42-0ubuntu2 ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6 Uname: Linux 4.4.0-21-generic x86_64 NonfreeKernelModules: wl ApportVersion: 2.20.1-0ubuntu2 Architecture: amd64 DKMSKernelVersion: 4.6.0-040600rc4-lowlatency Date: Fri Apr 22 15:43:10 2016 DuplicateSignature: dkms:nvidia-361:361.42-0ubuntu2:/var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c:119:11: error: too many arguments to function ‘get_user_pages’ InstallationDate: Installed on 2016-04-22 (0 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) PackageVersion: 361.42-0ubuntu2 RelatedPackageVersions: dpkg 1.18.4ubuntu1 apt 1.2.10ubuntu1 SourcePackage: nvidia-graphics-drivers-361 Title: nvidia-361 361.42-0ubuntu2: nvidia-361 kernel module failed to build UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1573508/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp