<div><div dir="auto">There’s, like, 3 threads on LQ about this.</div></div><div><br><div class="gmail_quote"><div dir="ltr">On Fri, Feb 1, 2019 at 3:40 PM Dominik Drobek <<a href="mailto:dominik.drobek@o2.pl">dominik.drobek@o2.pl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Has anyone tried to build the NVIDIA proprietary kernel module for the <br>
most recent kernel (4.4.172) on Slackware-14.2? I'm getting the <br>
following error:<br>
<br>
   CC [M] <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.o<br>
In file included from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:21:0,<br>
                  from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15:<br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c: <br>
In function 'os_lock_user_pages':<br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:120:48: <br>
warning: passing argument 6 of 'get_user_pages' makes pointer from <br>
integer without a cast [-Wint-conversion]<br>
                              page_count, write, force, user_pages, NULL);<br>
                                                 ^<br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-mm.h:44:70: <br>
note: in definition of macro 'NV_GET_USER_PAGES'<br>
          get_user_pages(current, current->mm, start, nr_pages, write, <br>
force, pages, vmas)<br>
                                                                       ^<br>
In file included from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-pgprot.h:17:0,<br>
                  from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:20,<br>
                  from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15:<br>
include/linux/mm.h:1200:6: note: expected 'struct page **' but argument <br>
is of type 'NvBool {aka unsigned char}'<br>
  long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,<br>
       ^<br>
In file included from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:21:0,<br>
                  from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15:<br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:120:55: <br>
warning: passing argument 7 of 'get_user_pages' from incompatible <br>
pointer type [-Wincompatible-pointer-types]<br>
                              page_count, write, force, user_pages, NULL);<br>
                                                        ^<br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-mm.h:44:77: <br>
note: in definition of macro 'NV_GET_USER_PAGES'<br>
          get_user_pages(current, current->mm, start, nr_pages, write, <br>
force, pages, vmas)<br>
<br>
      ^<br>
In file included from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-pgprot.h:17:0,<br>
                  from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:20,<br>
                  from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15:<br>
include/linux/mm.h:1200:6: note: expected 'struct vm_area_struct **' but <br>
argument is of type 'struct page **'<br>
  long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,<br>
       ^<br>
In file included from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:21:0,<br>
                  from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15:<br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-mm.h:44:9: <br>
error: too many arguments to function 'get_user_pages'<br>
          get_user_pages(current, current->mm, start, nr_pages, write, <br>
force, pages, vmas)<br>
          ^<br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:119:11: <br>
note: in expansion of macro 'NV_GET_USER_PAGES'<br>
      ret = NV_GET_USER_PAGES((unsigned long)address,<br>
            ^<br>
In file included from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-pgprot.h:17:0,<br>
                  from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/common/inc/nv-linux.h:20,<br>
                  from <br>
/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.c:15:<br>
include/linux/mm.h:1200:6: note: declared here<br>
  long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,<br>
       ^<br>
scripts/Makefile.build:277: recipe for target <br>
'/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.o' <br>
failed<br>
make[2]: *** <br>
[/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel/nvidia/os-mlock.o] <br>
Error 1<br>
Makefile:1436: recipe for target <br>
'_module_/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel' failed<br>
make[1]: *** <br>
[_module_/tmp/sbopkg.eaeOsa/NVIDIA-Linux-x86_64-410.78/kernel] Error 2<br>
make[1]: Leaving directory '/usr/src/linux-4.4.172'<br>
Makefile:79: recipe for target 'modules' failed<br>
make: *** [modules] Error 2<br>
<br>
(I was using sbopkg only to build the package - not to upgrade it.)<br>
<br>
<br>
Regards,<br>
Dominik Drobek<br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank">SlackBuilds-users@slackbuilds.org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer" target="_blank">https://slackbuilds.org/faq/</a><br>
<br>
</blockquote></div></div>