ipc: unbreak 32-bit shmctl/semctl/msgctl
authorJohannes Weiner <hannes@cmpxchg.org>
Sat, 20 Jun 2009 00:23:29 +0000 (02:23 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 21 Jun 2009 19:48:43 +0000 (12:48 -0700)
31a985f "ipc: use __ARCH_WANT_IPC_PARSE_VERSION in ipc/util.h" would
choose the implementation of ipc_parse_version() based on a symbol
defined in <asm/unistd.h>.

But it failed to also include this header and thus broke
IPC_64-passing 32-bit userspace because the flag wasn't masked out
properly anymore and the command not understood.

Include <linux/unistd.h> to give the architecture a chance to ask for
the no-no-op ipc_parse_version().

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/util.h

index ab3ebf2..764b51a 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef _IPC_UTIL_H
 #define _IPC_UTIL_H
 
 #ifndef _IPC_UTIL_H
 #define _IPC_UTIL_H
 
+#include <linux/unistd.h>
 #include <linux/err.h>
 
 #define SEQ_MULTIPLIER (IPCMNI)
 #include <linux/err.h>
 
 #define SEQ_MULTIPLIER (IPCMNI)