diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-06-17 19:27:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 16:03:54 -0400 |
commit | 31a985fbb18c1600955124a1efd2343efa867549 (patch) | |
tree | e0ab5427da93de03871c0a304bd01e3821994100 /ipc | |
parent | 371cbb387e33651b4c1326457116568ff01ac422 (diff) |
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')
-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); | |||
128 | struct kern_ipc_perm *ipcctl_pre_down(struct ipc_ids *ids, int id, int cmd, | 128 | struct kern_ipc_perm *ipcctl_pre_down(struct ipc_ids *ids, int id, int cmd, |
129 | struct ipc64_perm *perm, int extra_perm); | 129 | struct ipc64_perm *perm, int extra_perm); |
130 | 130 | ||
131 | #if defined(__ia64__) || defined(__x86_64__) || defined(__hppa__) || defined(__XTENSA__) | 131 | #ifndef __ARCH_WANT_IPC_PARSE_VERSION |
132 | /* On IA-64, we always use the "64-bit version" of the IPC structures. */ | 132 | /* On IA-64, we always use the "64-bit version" of the IPC structures. */ |
133 | # define ipc_parse_version(cmd) IPC_64 | 133 | # define ipc_parse_version(cmd) IPC_64 |
134 | #else | 134 | #else |