]> Git Repo - linux.git/commitdiff
[PATCH] uml: fix epoll
authorJeff Dike <[email protected]>
Tue, 27 Mar 2007 05:32:20 +0000 (21:32 -0800)
committerLinus Torvalds <[email protected]>
Tue, 27 Mar 2007 16:05:15 +0000 (09:05 -0700)
UML/x86_64 needs the same packing of struct epoll_event as x86_64.

Signed-off-by: Jeff Dike <[email protected]>
Cc: Davide Libenzi <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/eventpoll.h

index 84cfa8bbdc3698fc3a1fdb998d8c606e4d6e9ced..d2a96cbf4f0eeac7b9d01ae11a7553a3be4f0d92 100644 (file)
 /* 
  * On x86-64 make the 64bit structure have the same alignment as the
  * 32bit structure. This makes 32bit emulation easier.
+ *
+ * UML/x86_64 needs the same packing as x86_64 - UML + UML_X86 +
+ * 64_BIT adds up to UML/x86_64.
  */
 #ifdef __x86_64__
 #define EPOLL_PACKED __attribute__((packed))
 #else
+#if defined(CONFIG_UML) && defined(CONFIG_UML_X86) && defined(CONFIG_64BIT)
+#define EPOLL_PACKED __attribute__((packed))
+#else
 #define EPOLL_PACKED
 #endif
+#endif
 
 struct epoll_event {
        __u32 events;
This page took 0.050946 seconds and 4 git commands to generate.