Hello,

I am following your instructions and trying to compile devel-4.10.  I am 
getting the following error.  This error also occurs on stable-4.9. Any idea 
how i can fix this.

Thanks.

/home/user/qubes-linux-kernel/u2mfn/u2mfn.c: In function 'u2mfn_ioctl':
/home/user/qubes-linux-kernel/u2mfn/u2mfn.c:80:23: error: passing argument 5 of 
'get_user_pages' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
       (data, 1, 1, 0, &user_page, 0);
                       ^
In file included from /home/user/qubes-linux-kernel/u2mfn/u2mfn.c:26:0:
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/include/linux/mm.h:1271:6:
 note: expected 'struct vm_area_struct **' but argument is of type 'struct page 
**'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/home/user/qubes-linux-kernel/u2mfn/u2mfn.c:79:9: error: too many arguments to 
function 'get_user_pages'
   ret = get_user_pages
         ^
In file included from /home/user/qubes-linux-kernel/u2mfn/u2mfn.c:26:0:
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/include/linux/mm.h:1271:6:
 note: declared here
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
cc1: some warnings being treated as errors
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/scripts/Makefile.build:300:
 recipe for target '/home/user/qubes-linux-kernel/u2mfn/u2mfn.o' failed
make[4]: *** [/home/user/qubes-linux-kernel/u2mfn/u2mfn.o] Error 1
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/Makefile:1490: 
recipe for target '_module_/home/user/qubes-linux-kernel/u2mfn' failed
make[3]: *** [_module_/home/user/qubes-linux-kernel/u2mfn] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
make[1]: Leaving directory 
'/home/user/qubes-linux-kernel/kernel-4.10.13/linux-obj'
error: Bad exit status from /var/tmp/rpm-tmp.6UeD6a (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.6UeD6a (%build)
Makefile:90: recipe for target 'rpms-dom0' failed
make: *** [rpms-dom0] Error 1

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/d0c9881a-4a5e-4cde-93cf-8f7a6efaff3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to