On Sun, Jul 06, 2008 at 07:13:27PM +0200, Flavio wrote:
> I'm experiencing problems during guest kernel compilation.
> The vanilla kernel version is 2.6.25.10.
> 
> I've applied the skas4 patch for 2.6.25 kernels (without any error)
> but I get the following error during compilation:
> 
> In file included from arch/um/os-Linux/start_up.c:29:
> /opt/uml/src/linux-2.6.25.10/arch/um/include/skas/skas.h:29:22: error:
> asm/user.h: No such file or directory
> In file included from arch/um/os-Linux/start_up.c:29:
> /opt/uml/src/linux-2.6.25.10/arch/um/include/skas/skas.h:75: error:
> field 'fpregs' has incomplete type
> make[1]: *** [arch/um/os-Linux/start_up.o] Error 1
> make: *** [arch/um/os-Linux] Error 2

Uses of asm/user.h need to be stamped out.  Below is the most recent
patch for mainline along these lines.  You can do something similar
for skas.h if you feel up to it.  Otherwise, I'll fix it for the next
skas4 iteration.

                        Jeff


-- 
Work email - jdike at linux dot intel dot com

commit 14c8a77e1bbd693446dad297d2ae2dd22f187e4f
Author: Jeff Dike <[EMAIL PROTECTED]>
Date:   Thu Jun 12 15:21:40 2008 -0700

    uml: remove include of asm/user.h
    
    I allowed an include of asm/user.h to sneak back in.  This patch replaces
    it with sys/user.h.
    
    Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

diff --git a/arch/um/os-Linux/sys-i386/registers.c 
b/arch/um/os-Linux/sys-i386/registers.c
index b487cbe..229f7a5 100644
--- a/arch/um/os-Linux/sys-i386/registers.c
+++ b/arch/um/os-Linux/sys-i386/registers.c
@@ -6,7 +6,7 @@
 
 #include <errno.h>
 #include <sys/ptrace.h>
-#include <asm/user.h>
+#include <sys/user.h>
 #include "kern_constants.h"
 #include "longjmp.h"
 #include "user.h"
@@ -76,7 +76,7 @@ int put_fp_registers(int pid, unsigned long *regs)
 
 void arch_init_registers(int pid)
 {
-       struct user_fxsr_struct fpx_regs;
+       struct user_fpxregs_struct fpx_regs;
        int err;
 
        err = ptrace(PTRACE_GETFPXREGS, pid, 0, &fpx_regs);

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to