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 Desktop
Packages, which is subscribed to nvidia-graphics-drivers-340 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-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-340/+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

Reply via email to