Public bug reported:

[Impact]
nvidia dkms modules (304, 340, 384) fail to build after Ubuntu kernel 4.4 
backported the following fix from upstream stable, which is included on xenial 
kernel 4.4.0-143.169 that's currently in -proposed.

mm: replace get_user_pages() write/force parameters with gup_flags
https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial/commit/?h=master-next&id=9c72ad08f1510332e9314046e6a2adba5064f39a

Excerpt from ./nvidia-304/304.135/build/make.log:
------------------------------------------------
/var/lib/dkms/nvidia-304/304.135/build/nv-linux.h:1941:9: error: too many 
arguments to function ‘get_user_pages’
         get_user_pages(current, current->mm, start, nr_pages, write, force, 
pages, vmas)
         ^
/var/lib/dkms/nvidia-304/304.135/build/nv-mlock.c:52:11: note: in expansion of 
macro ‘NV_GET_USER_PAGES’
     ret = NV_GET_USER_PAGES((unsigned long)address,
           ^
In file included from /var/lib/dkms/nvidia-304/304.135/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia-304/304.135/build/nv-mlock.c:15:
include/linux/mm.h:1222:6: note: declared here
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
------------------------------------------------

[Test case]
Install nvidia dkms packages (nvidia-graphics-drivers-304, 
nvidia-graphics-drivers-340, nvidia-graphics-drivers-384) with Ubuntu linux 4.4 
later or equal than 4.4.0-143.

** Affects: nvidia
     Importance: Undecided
         Status: New

** Affects: nvidia-graphics-drivers-384 (Ubuntu)
     Importance: Undecided
         Status: New

** Information type changed from Proprietary to Public

** Also affects: nvidia-graphics-drivers-384 (Ubuntu)
   Importance: Undecided
       Status: New

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

Title:
  nvidia dkms modules fail to build with linux 4.4.0-143.169

To manage notifications about this bug go to:
https://bugs.launchpad.net/nvidia/+bug/1818101/+subscriptions

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

Reply via email to