Hi,

Has anyone tried to build the NVIDIA proprietary kernel module for the most recent kernel (4.4.172) on Slackware-14.2? I'm getting the following error:

CC [M] /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.o In file included from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:21:0, from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15: /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages': /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:120:48: warning: passing argument 6 of 'get_user_pages' makes pointer from integer without a cast [-Wint-conversion]
                             page_count, write, force, user_pages, NULL);
                                                ^
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-mm.h:44:70: note: in definition of macro 'NV_GET_USER_PAGES' get_user_pages(current, current->mm, start, nr_pages, write, force, pages, vmas)
                                                                      ^
In file included from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-pgprot.h:17:0, from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:20, from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15: include/linux/mm.h:1200:6: note: expected 'struct page **' but argument is of type 'NvBool {aka unsigned char}'
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:21:0, from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15: /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:120:55: warning: passing argument 7 of 'get_user_pages' from incompatible pointer type [-Wincompatible-pointer-types]
                             page_count, write, force, user_pages, NULL);
                                                       ^
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-mm.h:44:77: note: in definition of macro 'NV_GET_USER_PAGES' get_user_pages(current, current->mm, start, nr_pages, write, force, pages, vmas)

     ^
In file included from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-pgprot.h:17:0, from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:20, from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15: include/linux/mm.h:1200:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:21:0, from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15: /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-mm.h:44:9: error: too many arguments to function 'get_user_pages' get_user_pages(current, current->mm, start, nr_pages, write, force, pages, vmas)
         ^
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:119:11: note: in expansion of macro 'NV_GET_USER_PAGES'
     ret = NV_GET_USER_PAGES((unsigned long)address,
           ^
In file included from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-pgprot.h:17:0, from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:20, from /tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15:
include/linux/mm.h:1200:6: note: declared here
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
scripts/Makefile.build:277: recipe for target '/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.o' failed make[2]: *** [/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.o] Error 1 Makefile:1436: recipe for target '_module_/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel' failed make[1]: *** [_module_/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-4.4.172'
Makefile:79: recipe for target 'modules' failed
make: *** [modules] Error 2

(I was using sbopkg only to build the package - not to upgrade it.)


Regards,
Dominik Drobek
_______________________________________________
SlackBuilds-users mailing list
[email protected]
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to