On 04/28/2017 09:03 PM, gho...@gmail.com
wrote:
> 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 need to update the qubes-kernel-vm-support package in the Fedora VM
that you're trying to compile this in. A compatible version (3.2.4)
should has been pushed out to the stable repositories so running sudo
dnf upgrade should pull it in (unless you've never installed it in the
first place, in which case you should run sudo dnf install
qubes-kernel-vm-support instead). Once you've installed the package, try
compiling one of those kernels again and it should work.


-- 
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 qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/oe131i%24au6%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to