提交 cba4fbbf 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

remove include/asm-*/ipc.h

All asm/ipc.h files do only #include <asm-generic/ipc.h>.

This patch therefore removes all include/asm-*/ipc.h files and moves the
contents of include/asm-generic/ipc.h to include/linux/ipc.h.
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 4af3c9cc
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
extern unsigned long do_mremap(unsigned long addr, unsigned long old_len, extern unsigned long do_mremap(unsigned long addr, unsigned long old_len,
unsigned long new_len, unsigned long flags, unsigned long new_len, unsigned long flags,
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
#include <linux/sem.h> #include <linux/sem.h>
#include <linux/socket.h> #include <linux/socket.h>
#include <linux/net.h> #include <linux/net.h>
#include <asm/ipc.h> #include <linux/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
struct oldabi_stat64 { struct oldabi_stat64 {
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <linux/stat.h> #include <linux/stat.h>
#include <linux/mman.h> #include <linux/mman.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
#include <asm/segment.h> #include <asm/segment.h>
/* /*
......
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
#include <linux/file.h> #include <linux/file.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/syscalls.h> #include <linux/syscalls.h>
#include <linux/ipc.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
/* /*
* sys_pipe() is the normal C calling standard for creating * sys_pipe() is the normal C calling standard for creating
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
#include <linux/file.h> #include <linux/file.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/ipc.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/cachectl.h> #include <asm/cachectl.h>
#include <asm/traps.h> #include <asm/traps.h>
#include <asm/ipc.h>
#include <asm/unistd.h> #include <asm/unistd.h>
/* /*
......
...@@ -20,11 +20,11 @@ ...@@ -20,11 +20,11 @@
#include <linux/mman.h> #include <linux/mman.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/cachectl.h> #include <asm/cachectl.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/ipc.h>
#include <asm/syscall.h> #include <asm/syscall.h>
#include <asm/unistd.h> #include <asm/unistd.h>
......
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
#include <linux/mman.h> #include <linux/mman.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/ipc.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/cachectl.h> #include <asm/cachectl.h>
#include <asm/traps.h> #include <asm/traps.h>
#include <asm/ipc.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/unistd.h> #include <asm/unistd.h>
......
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
#include <linux/mman.h> #include <linux/mman.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/ipc.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/cachectl.h> #include <asm/cachectl.h>
#include <asm/traps.h> #include <asm/traps.h>
#include <asm/ipc.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/unistd.h> #include <asm/unistd.h>
......
...@@ -35,12 +35,12 @@ ...@@ -35,12 +35,12 @@
#include <linux/security.h> #include <linux/security.h>
#include <linux/compat.h> #include <linux/compat.h>
#include <linux/vfs.h> #include <linux/vfs.h>
#include <linux/ipc.h>
#include <net/sock.h> #include <net/sock.h>
#include <net/scm.h> #include <net/scm.h>
#include <asm/compat-signal.h> #include <asm/compat-signal.h>
#include <asm/ipc.h>
#include <asm/sim.h> #include <asm/sim.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/mmu_context.h> #include <asm/mmu_context.h>
......
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
#include <linux/shm.h> #include <linux/shm.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/ipc.h>
#include <asm/branch.h> #include <asm/branch.h>
#include <asm/cachectl.h> #include <asm/cachectl.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/ipc.h>
#include <asm/asm-offsets.h> #include <asm/asm-offsets.h>
#include <asm/signal.h> #include <asm/signal.h>
#include <asm/sim.h> #include <asm/sim.h>
......
...@@ -41,10 +41,10 @@ ...@@ -41,10 +41,10 @@
#include <linux/compat.h> #include <linux/compat.h>
#include <linux/ptrace.h> #include <linux/ptrace.h>
#include <linux/elf.h> #include <linux/elf.h>
#include <linux/ipc.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/types.h> #include <asm/types.h>
#include <asm/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/unistd.h> #include <asm/unistd.h>
#include <asm/semaphore.h> #include <asm/semaphore.h>
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#include <linux/personality.h> #include <linux/personality.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
#include <asm/semaphore.h> #include <asm/semaphore.h>
#include <asm/syscalls.h> #include <asm/syscalls.h>
#include <asm/time.h> #include <asm/time.h>
......
...@@ -58,9 +58,9 @@ ...@@ -58,9 +58,9 @@
#include <linux/vfs.h> #include <linux/vfs.h>
#include <linux/ptrace.h> #include <linux/ptrace.h>
#include <linux/fadvise.h> #include <linux/fadvise.h>
#include <linux/ipc.h>
#include <asm/types.h> #include <asm/types.h>
#include <asm/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/semaphore.h> #include <asm/semaphore.h>
......
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/personality.h> #include <linux/personality.h>
#include <linux/unistd.h> #include <linux/unistd.h>
#include <linux/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
/* /*
* sys_pipe() is the normal C calling standard for creating * sys_pipe() is the normal C calling standard for creating
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/ipc.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
#include <asm/unistd.h> #include <asm/unistd.h>
/* /*
......
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
#include <linux/file.h> #include <linux/file.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/syscalls.h> #include <linux/syscalls.h>
#include <linux/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/unistd.h> #include <asm/unistd.h>
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
#include <asm/unistd.h> #include <asm/unistd.h>
/* #define DEBUG_UNIMP_SYSCALL */ /* #define DEBUG_UNIMP_SYSCALL */
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include <linux/random.h> #include <linux/random.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
#include <asm/utrap.h> #include <asm/utrap.h>
#include <asm/perfctr.h> #include <asm/perfctr.h>
#include <asm/a.out.h> #include <asm/a.out.h>
......
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
#include <linux/highuid.h> #include <linux/highuid.h>
#include <asm/types.h> #include <asm/types.h>
#include <asm/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/fpumacro.h> #include <asm/fpumacro.h>
#include <asm/semaphore.h> #include <asm/semaphore.h>
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
#include <linux/shm.h> #include <linux/shm.h>
#include <linux/sem.h> #include <linux/sem.h>
#include <linux/msg.h> #include <linux/msg.h>
#include <linux/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/string.h> #include <asm/string.h>
#include <asm/ipc.h>
#include "conv.h" #include "conv.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "linux/sched.h" #include "linux/sched.h"
#include "linux/shm.h" #include "linux/shm.h"
#include "asm/ipc.h" #include "linux/ipc.h"
#include "asm/mman.h" #include "asm/mman.h"
#include "asm/uaccess.h" #include "asm/uaccess.h"
#include "asm/unistd.h" #include "asm/unistd.h"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <linux/file.h> #include <linux/file.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ipc.h>
#include <asm/semaphore.h> #include <asm/semaphore.h>
#include <asm/unistd.h> #include <asm/unistd.h>
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
#include <linux/ipc.h> #include <linux/ipc.h>
#include <linux/compat.h> #include <linux/compat.h>
#include <asm/ipc.h>
asmlinkage long asmlinkage long
sys32_ipc(u32 call, int first, int second, int third, sys32_ipc(u32 call, int first, int second, int third,
compat_uptr_t ptr, u32 fifth) compat_uptr_t ptr, u32 fifth)
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
#include <linux/mman.h> #include <linux/mman.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/ipc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/unistd.h> #include <asm/unistd.h>
#include <asm/ipc.h>
/* /*
* sys_pipe() is the normal C calling standard for creating * sys_pipe() is the normal C calling standard for creating
......
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
...@@ -2,7 +2,6 @@ header-y += errno-base.h ...@@ -2,7 +2,6 @@ header-y += errno-base.h
header-y += errno.h header-y += errno.h
header-y += fcntl.h header-y += fcntl.h
header-y += ioctl.h header-y += ioctl.h
header-y += ipc.h
header-y += mman.h header-y += mman.h
header-y += poll.h header-y += poll.h
header-y += signal.h header-y += signal.h
......
#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 */
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
...@@ -13,7 +13,6 @@ header-y += shmbuf.h ...@@ -13,7 +13,6 @@ header-y += shmbuf.h
header-y += socket.h header-y += socket.h
header-y += termbits.h header-y += termbits.h
header-y += fcntl.h header-y += fcntl.h
header-y += ipc.h
header-y += poll.h header-y += poll.h
header-y += sockios.h header-y += sockios.h
header-y += ucontext.h header-y += ucontext.h
......
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
...@@ -10,7 +10,6 @@ header-y += bbc.h ...@@ -10,7 +10,6 @@ header-y += bbc.h
header-y += bpp.h header-y += bpp.h
header-y += display7seg.h header-y += display7seg.h
header-y += envctrl.h header-y += envctrl.h
header-y += ipc.h
header-y += openprom.h header-y += openprom.h
header-y += openpromio.h header-y += openpromio.h
header-y += pconf.h header-y += pconf.h
......
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
#include <asm-generic/ipc.h>
...@@ -49,6 +49,34 @@ struct ipc_perm ...@@ -49,6 +49,34 @@ struct ipc_perm
#define IPC_64 0x0100 /* New version (support 32-bit UIDs, bigger #define IPC_64 0x0100 /* New version (support 32-bit UIDs, bigger
message sizes, etc. */ message sizes, etc. */
/*
* 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))
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/kref.h> #include <linux/kref.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册