diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-06-17 16:27:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 13:03:54 -0700 |
commit | 31a985fbb18c1600955124a1efd2343efa867549 (patch) | |
tree | e0ab5427da93de03871c0a304bd01e3821994100 /ipc/util.h | |
parent | 371cbb387e33651b4c1326457116568ff01ac422 (diff) | |
download | lwn-31a985fbb18c1600955124a1efd2343efa867549.tar.gz lwn-31a985fbb18c1600955124a1efd2343efa867549.zip |
ipc: use __ARCH_WANT_IPC_PARSE_VERSION in ipc/util.h
The definition of ipc_parse_version depends on
__ARCH_WANT_IPC_PARSE_VERSION, but the header file declares it
conditionally based on the architecture.
Use the macro consistently to make it easier to add new architectures.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/util.h')
-rw-r--r-- | ipc/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/util.h b/ipc/util.h index 1187332a89d2..f9fe90e48861 100644 --- a/ipc/util.h +++ b/ipc/util.h @@ -128,7 +128,7 @@ void ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out); struct kern_ipc_perm *ipcctl_pre_down(struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm); -#if defined(__ia64__) || defined(__x86_64__) || defined(__hppa__) || defined(__XTENSA__) +#ifndef __ARCH_WANT_IPC_PARSE_VERSION /* On IA-64, we always use the "64-bit version" of the IPC structures. */ # define ipc_parse_version(cmd) IPC_64 #else |