linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] aio vs gentoo headers
@ 2007-07-27 18:11 Antoine Martin
  2007-07-27 19:18 ` Jeff Dike
  0 siblings, 1 reply; 2+ messages in thread
From: Antoine Martin @ 2007-07-27 18:11 UTC (permalink / raw)
  To: User-mode Linux Kernel Development

I needed the tiny change below to be able to build on amd64 with gentoo 
kernel headers. posted here just in case it's useful, I can compile both 
x86 and amd64 kernels using these headers but not cross compile (make 
ARCH=um SUBARCH=i386)
That still fails with:
arch/um/sys-i386/user-offsets.c: In function 'foo':
arch/um/sys-i386/user-offsets.c:52: error: invalid application of 
'sizeof' to incomplete type 'struct user_fxsr_struct'
make[1]: *** [arch/um/sys-i386/user-offsets.s] Error 1
make: *** [arch/um/sys-i386/user-offsets.s] Error 2



--- 2.6.22.1-old/arch/um/os-Linux/aio    2007-07-27 18:14:43.000000000 +0100
+++ new/arch/um/os-Linux/aio.c    2007-07-27 18:14:24.000000000 +0100
@@ -76,7 +76,8 @@
                                 .aio_nbytes     = len,
                                 .aio_offset     = offset,
                                 .aio_reserved1  = 0,
-                               .aio_reserved2  = 0 });
+                               .aio_reserved2  = 0,
+                               .aio_reserved3  = 0 });

         switch(type){
         case AIO_READ:

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-27 19:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 18:11 [uml-devel] aio vs gentoo headers Antoine Martin
2007-07-27 19:18 ` Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox