diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-03-30 16:38:00 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-30 16:38:00 -0800 |
commit | bdc98a74f9b8e27f98064cf4383dbaf011d64fec (patch) | |
tree | 830f8be7aa7fbe74136da2ed330c2c2b96b1510f | |
parent | 1a657b7f9dce92c3cc4ae316c4f3d3ed263700c9 (diff) | |
download | history-bdc98a74f9b8e27f98064cf4383dbaf011d64fec.tar.gz |
[PATCH] consolidate asm/ipc.h
All the asm*/ipc.h files are basically the same (for things that are used)
so I have consolidated them all into asm-generic/ipc.h
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/x86_64/ia32/sys_ia32.c | 1 | ||||
-rw-r--r-- | arch/x86_64/kernel/sys_x86_64.c | 1 | ||||
-rw-r--r-- | include/asm-arm/ipc.h | 30 | ||||
-rw-r--r-- | include/asm-arm26/ipc.h | 29 | ||||
-rw-r--r-- | include/asm-cris/ipc.h | 36 | ||||
-rw-r--r-- | include/asm-frv/ipc.h | 34 | ||||
-rw-r--r-- | include/asm-generic/ipc.h | 31 | ||||
-rw-r--r-- | include/asm-h8300/ipc.h | 32 | ||||
-rw-r--r-- | include/asm-i386/ipc.h | 33 | ||||
-rw-r--r-- | include/asm-m32r/ipc.h | 36 | ||||
-rw-r--r-- | include/asm-m68k/ipc.h | 32 | ||||
-rw-r--r-- | include/asm-m68knommu/ipc.h | 2 | ||||
-rw-r--r-- | include/asm-mips/ipc.h | 34 | ||||
-rw-r--r-- | include/asm-ppc/ipc.h | 30 | ||||
-rw-r--r-- | include/asm-ppc64/ipc.h | 35 | ||||
-rw-r--r-- | include/asm-s390/ipc.h | 41 | ||||
-rw-r--r-- | include/asm-sh/ipc.h | 33 | ||||
-rw-r--r-- | include/asm-sh64/ipc.h | 7 | ||||
-rw-r--r-- | include/asm-sparc/ipc.h | 33 | ||||
-rw-r--r-- | include/asm-sparc64/ipc.h | 34 | ||||
-rw-r--r-- | include/asm-v850/ipc.h | 32 | ||||
-rw-r--r-- | include/asm-x86_64/ipc.h | 6 |
22 files changed, 49 insertions, 533 deletions
diff --git a/arch/x86_64/ia32/sys_ia32.c b/arch/x86_64/ia32/sys_ia32.c index f0c459a4bfd581..68a9ab06ee7c21 100644 --- a/arch/x86_64/ia32/sys_ia32.c +++ b/arch/x86_64/ia32/sys_ia32.c @@ -65,7 +65,6 @@ #include <asm/types.h> #include <asm/uaccess.h> #include <asm/semaphore.h> -#include <asm/ipc.h> #include <asm/atomic.h> #include <asm/ldt.h> diff --git a/arch/x86_64/kernel/sys_x86_64.c b/arch/x86_64/kernel/sys_x86_64.c index 624bcf8e54731e..477d8be57d64f0 100644 --- a/arch/x86_64/kernel/sys_x86_64.c +++ b/arch/x86_64/kernel/sys_x86_64.c @@ -18,7 +18,6 @@ #include <linux/personality.h> #include <asm/uaccess.h> -#include <asm/ipc.h> #include <asm/ia32.h> /* diff --git a/include/asm-arm/ipc.h b/include/asm-arm/ipc.h index 2bbbf6335d9c3a..a46e3d9c2a3fc1 100644 --- a/include/asm-arm/ipc.h +++ b/include/asm-arm/ipc.h @@ -1,29 +1 @@ -#ifndef __ASMARM_IPC_H -#define __ASMARM_IPC_H - -/* - * These are used to wrap system calls on ARM. - * - * See arch/arm/kernel/sys-arm.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf __user *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif +#include <asm-generic/ipc.h> diff --git a/include/asm-arm26/ipc.h b/include/asm-arm26/ipc.h index c330504ba3f4c1..a46e3d9c2a3fc1 100644 --- a/include/asm-arm26/ipc.h +++ b/include/asm-arm26/ipc.h @@ -1,28 +1 @@ -#ifndef __ASMARM_IPC_H -#define __ASMARM_IPC_H - -/* - * These are used to wrap system calls on ARM. - * - * See arch/arm/kernel/sys-arm.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif +#include <asm-generic/ipc.h> diff --git a/include/asm-cris/ipc.h b/include/asm-cris/ipc.h index f086af6fa03ff2..a46e3d9c2a3fc1 100644 --- a/include/asm-cris/ipc.h +++ b/include/asm-cris/ipc.h @@ -1,35 +1 @@ -#ifndef __CRIS_IPC_H__ -#define __CRIS_IPC_H__ - -/* - * These are used to wrap system calls on CRIS. - * - * See arch/cris/kernel/sys_cris.c for ugly details.. - * - * Same as x86 version. - * - */ -struct ipc_kludge { - struct msgbuf *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif +#include <asm-generic/ipc.h> diff --git a/include/asm-frv/ipc.h b/include/asm-frv/ipc.h index 2f72065c633773..a46e3d9c2a3fc1 100644 --- a/include/asm-frv/ipc.h +++ b/include/asm-frv/ipc.h @@ -1,33 +1 @@ -#ifndef __ASM_IPC_H__ -#define __ASM_IPC_H__ - -/* - * These are used to wrap system calls on FR-V - * - * See arch/frv/kernel/sys_frv.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf __user *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif - +#include <asm-generic/ipc.h> diff --git a/include/asm-generic/ipc.h b/include/asm-generic/ipc.h new file mode 100644 index 00000000000000..a40407a165cec6 --- /dev/null +++ b/include/asm-generic/ipc.h @@ -0,0 +1,31 @@ +#ifndef _ASM_GENERIC_IPC_H +#define _ASM_GENERIC_IPC_H +/* + * These are used to wrap system calls. + * + * See architecture code for ugly details.. + */ +struct ipc_kludge { + struct msgbuf __user *msgp; + long msgtyp; +}; + +#define SEMOP 1 +#define SEMGET 2 +#define SEMCTL 3 +#define SEMTIMEDOP 4 +#define MSGSND 11 +#define MSGRCV 12 +#define MSGGET 13 +#define MSGCTL 14 +#define SHMAT 21 +#define SHMDT 22 +#define SHMGET 23 +#define SHMCTL 24 + +/* Used by the DIPC package, try and avoid reusing it */ +#define DIPC 25 + +#define IPCCALL(version,op) ((version)<<16 | (op)) + +#endif /* _ASM_GENERIC_IPC_H */ diff --git a/include/asm-h8300/ipc.h b/include/asm-h8300/ipc.h index 6219d8a90e552f..a46e3d9c2a3fc1 100644 --- a/include/asm-h8300/ipc.h +++ b/include/asm-h8300/ipc.h @@ -1,31 +1 @@ -#ifndef __H8300_IPC_H__ -#define __H8300_IPC_H__ - -/* - * These are used to wrap system calls on H8/300. - * - * See arch/h8300/kernel/sys_h8300.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif +#include <asm-generic/ipc.h> diff --git a/include/asm-i386/ipc.h b/include/asm-i386/ipc.h index 810a449f8a7e9c..a46e3d9c2a3fc1 100644 --- a/include/asm-i386/ipc.h +++ b/include/asm-i386/ipc.h @@ -1,32 +1 @@ -#ifndef __i386_IPC_H__ -#define __i386_IPC_H__ - -/* - * These are used to wrap system calls on x86. - * - * See arch/i386/kernel/sys_i386.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf __user *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif +#include <asm-generic/ipc.h> diff --git a/include/asm-m32r/ipc.h b/include/asm-m32r/ipc.h index 03aac6644b5873..a46e3d9c2a3fc1 100644 --- a/include/asm-m32r/ipc.h +++ b/include/asm-m32r/ipc.h @@ -1,35 +1 @@ -#ifndef __M32R_IPC_H__ -#define __M32R_IPC_H__ - -/* orig : i386/ipc.h 2.6.0-test3 */ - -/* - * These are used to wrap system calls on x86. - * - * See arch/i386/kernel/sys_i386.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf __user *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif /* __M32R_IPC_H__ */ - +#include <asm-generic/ipc.h> diff --git a/include/asm-m68k/ipc.h b/include/asm-m68k/ipc.h index 19e9cbe3f26613..a46e3d9c2a3fc1 100644 --- a/include/asm-m68k/ipc.h +++ b/include/asm-m68k/ipc.h @@ -1,31 +1 @@ -#ifndef __m68k_IPC_H__ -#define __m68k_IPC_H__ - -/* - * These are used to wrap system calls on m68k. - * - * See arch/m68k/kernel/sys_m68k.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif +#include <asm-generic/ipc.h> diff --git a/include/asm-m68knommu/ipc.h b/include/asm-m68knommu/ipc.h index d66c4b21940067..a46e3d9c2a3fc1 100644 --- a/include/asm-m68knommu/ipc.h +++ b/include/asm-m68knommu/ipc.h @@ -1 +1 @@ -#include <asm-m68k/ipc.h> +#include <asm-generic/ipc.h> diff --git a/include/asm-mips/ipc.h b/include/asm-mips/ipc.h index 377bbd5ef62fc4..a46e3d9c2a3fc1 100644 --- a/include/asm-mips/ipc.h +++ b/include/asm-mips/ipc.h @@ -1,33 +1 @@ -#ifndef _ASM_IPC_H -#define _ASM_IPC_H - -/* - * These are used to wrap system calls on MIPS. - * - * See arch/mips/kernel/sysmips.c for ugly details.. - * FIXME: split up into ordinary syscalls ... - */ -struct ipc_kludge { - struct msgbuf *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif /* _ASM_IPC_H */ +#include <asm-generic/ipc.h> diff --git a/include/asm-ppc/ipc.h b/include/asm-ppc/ipc.h index 512dfe962d8bb8..a46e3d9c2a3fc1 100644 --- a/include/asm-ppc/ipc.h +++ b/include/asm-ppc/ipc.h @@ -1,29 +1 @@ -#ifndef __PPC_IPC_H__ -#define __PPC_IPC_H__ - -/* - * These are used to wrap system calls on PowerPC. - * - * See arch/ppc/kernel/syscalls.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf __user *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif /* __PPC_IPC_H__ */ +#include <asm-generic/ipc.h> diff --git a/include/asm-ppc64/ipc.h b/include/asm-ppc64/ipc.h index f91bf5b0d092ef..a46e3d9c2a3fc1 100644 --- a/include/asm-ppc64/ipc.h +++ b/include/asm-ppc64/ipc.h @@ -1,34 +1 @@ -#ifndef __PPC64_IPC_H__ -#define __PPC64_IPC_H__ - -/* - * These are used to wrap system calls on PowerPC. - * - * See arch/ppc64/kernel/syscalls.c for ugly details.. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -struct ipc_kludge { - struct msgbuf __user *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif /* __PPC64_IPC_H__ */ +#include <asm-generic/ipc.h> diff --git a/include/asm-s390/ipc.h b/include/asm-s390/ipc.h index d6c041e9ca9aa8..a46e3d9c2a3fc1 100644 --- a/include/asm-s390/ipc.h +++ b/include/asm-s390/ipc.h @@ -1,40 +1 @@ -/* - * include/asm-s390/ipc.h - * - * S390 version - * - * Derived from "include/asm-i386/ipc.h" - */ - -#ifndef __s390_IPC_H__ -#define __s390_IPC_H__ - -/* - * These are used to wrap system calls on S390. - * - * See arch/s390/kernel/sys_s390.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf __user *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif +#include <asm-generic/ipc.h> diff --git a/include/asm-sh/ipc.h b/include/asm-sh/ipc.h index 6ced9bec6abcd3..a46e3d9c2a3fc1 100644 --- a/include/asm-sh/ipc.h +++ b/include/asm-sh/ipc.h @@ -1,32 +1 @@ -#ifndef __ASM_SH_IPC_H -#define __ASM_SH_IPC_H - -/* - * These are used to wrap system calls on x86. - * - * See arch/i386/kernel/sys_i386.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf __user *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif /* __ASM_SH_IPC_H */ +#include <asm-generic/ipc.h> diff --git a/include/asm-sh64/ipc.h b/include/asm-sh64/ipc.h index d8d9389bd3ce7a..a46e3d9c2a3fc1 100644 --- a/include/asm-sh64/ipc.h +++ b/include/asm-sh64/ipc.h @@ -1,6 +1 @@ -#ifndef __ASM_SH64_IPC_H -#define __ASM_SH64_IPC_H - -#include <asm-sh/ipc.h> - -#endif /* __ASM_SH64_IPC_H */ +#include <asm-generic/ipc.h> diff --git a/include/asm-sparc/ipc.h b/include/asm-sparc/ipc.h index 3064aaf8fa27c3..a46e3d9c2a3fc1 100644 --- a/include/asm-sparc/ipc.h +++ b/include/asm-sparc/ipc.h @@ -1,32 +1 @@ -#ifndef __SPARC_IPC_H__ -#define __SPARC_IPC_H__ - -/* - * These are used to wrap system calls on the sparc. - * - * See arch/sparc/kernel/sys_sparc.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf __user *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif +#include <asm-generic/ipc.h> diff --git a/include/asm-sparc64/ipc.h b/include/asm-sparc64/ipc.h index 39261d5523ef9f..a46e3d9c2a3fc1 100644 --- a/include/asm-sparc64/ipc.h +++ b/include/asm-sparc64/ipc.h @@ -1,33 +1 @@ -#ifndef __SPARC64_IPC_H__ -#define __SPARC64_IPC_H__ - -/* - * These are used to wrap system calls on the sparc. - * - * See arch/sparc64/kernel/sys_sparc32.c for ugly details.. - */ -struct ipc_kludge { - u32 msgp; - s32 msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define SEMTIMEDOP 4 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -/* We don't need to maintain backward compatibility on 64bit, we've started fresh */ -#define IPCCALL(version,op) (op) - -#endif +#include <asm-generic/ipc.h> diff --git a/include/asm-v850/ipc.h b/include/asm-v850/ipc.h index 5656799cd4e85d..a46e3d9c2a3fc1 100644 --- a/include/asm-v850/ipc.h +++ b/include/asm-v850/ipc.h @@ -1,31 +1 @@ -#ifndef __V850_IPC_H__ -#define __V850_IPC_H__ - -/* - * These are used to wrap system calls on v850. - * - * See arch/v850/kernel/syscalls.c for ugly details.. - */ -struct ipc_kludge { - struct msgbuf *msgp; - long msgtyp; -}; - -#define SEMOP 1 -#define SEMGET 2 -#define SEMCTL 3 -#define MSGSND 11 -#define MSGRCV 12 -#define MSGGET 13 -#define MSGCTL 14 -#define SHMAT 21 -#define SHMDT 22 -#define SHMGET 23 -#define SHMCTL 24 - -/* Used by the DIPC package, try and avoid reusing it */ -#define DIPC 25 - -#define IPCCALL(version,op) ((version)<<16 | (op)) - -#endif /* __V850_IPC_H__ */ +#include <asm-generic/ipc.h> diff --git a/include/asm-x86_64/ipc.h b/include/asm-x86_64/ipc.h deleted file mode 100644 index 8736ba68c11835..00000000000000 --- a/include/asm-x86_64/ipc.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __x8664_IPC_H__ -#define __x8664_IPC_H__ - -/* dummy */ - -#endif |