nvidia dkms modules fail to build with linux 4.4.0-143.169 [error: too many arguments to function ‘get_user_pages’]

Bug #1818101 reported by Kleber Sacilotto de Souza
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nvidia
New
Undecided
Unassigned
nvidia-graphics-drivers-304 (Ubuntu)
New
Undecided
Unassigned
Trusty
New
Undecided
Alberto Milone
Xenial
New
Undecided
Alberto Milone
nvidia-graphics-drivers-340 (Ubuntu)
New
Undecided
Unassigned
Trusty
New
Undecided
Alberto Milone
Xenial
New
Undecided
Alberto Milone
nvidia-graphics-drivers-384 (Ubuntu)
New
Undecided
Unassigned
Trusty
New
Undecided
Alberto Milone
Xenial
New
Undecided
Alberto Milone

Bug Description

[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.

information type: Proprietary → Public
Changed in nvidia-graphics-drivers-304 (Ubuntu Trusty):
assignee: nobody → Alberto Milone (albertomilone)
Changed in nvidia-graphics-drivers-304 (Ubuntu Xenial):
assignee: nobody → Alberto Milone (albertomilone)
Changed in nvidia-graphics-drivers-340 (Ubuntu Trusty):
assignee: nobody → Alberto Milone (albertomilone)
Changed in nvidia-graphics-drivers-340 (Ubuntu Xenial):
assignee: nobody → Alberto Milone (albertomilone)
Changed in nvidia-graphics-drivers-384 (Ubuntu Trusty):
assignee: nobody → Alberto Milone (albertomilone)
Changed in nvidia-graphics-drivers-384 (Ubuntu Xenial):
assignee: nobody → Alberto Milone (albertomilone)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1573508, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

summary: - nvidia dkms modules fail to build with linux 4.4.0-143.169
+ nvidia dkms modules fail to build with linux 4.4.0-143.169 [error: too
+ many arguments to function ‘get_user_pages’]
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.