aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compat.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-02-03 14:36:44 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2013-03-03 23:00:27 -0500
commit0e65a81b105a3f646793d46740ad90fa5c067986 (patch)
tree3ebab1b2110a978c1e86ee2ee378d33b4a191826 /include/linux/compat.h
parent56e41d3c5aa84d679eebdb3cb8a70b03c5fbd6c3 (diff)
get rid of compat_sys_semctl() and friends in case of ARCH_WANT_OLD_COMPAT_IPC
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/compat.h')
-rw-r--r--include/linux/compat.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h
index 79a4781ac502..2bfe67329dc4 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -311,22 +311,13 @@ asmlinkage long
311compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr, 311compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr,
312 compat_size_t __user *len_ptr); 312 compat_size_t __user *len_ptr);
313 313
314#ifdef CONFIG_ARCH_WANT_OLD_COMPAT_IPC
315long compat_sys_semctl(int first, int second, int third, void __user *uptr);
316long compat_sys_msgsnd(int first, int second, int third, void __user *uptr);
317long compat_sys_msgrcv(int first, int second, int msgtyp, int third,
318 int version, void __user *uptr);
319long compat_sys_shmat(int first, int second, compat_uptr_t third, int version,
320 void __user *uptr);
321asmlinkage long compat_sys_ipc(u32, int, int, u32, compat_uptr_t, u32); 314asmlinkage long compat_sys_ipc(u32, int, int, u32, compat_uptr_t, u32);
322#else 315asmlinkage long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
323long compat_sys_semctl(int semid, int semnum, int cmd, int arg); 316asmlinkage long compat_sys_semctl(int semid, int semnum, int cmd, int arg);
324long compat_sys_msgsnd(int msqid, struct compat_msgbuf __user *msgp, 317asmlinkage long compat_sys_msgsnd(int msqid, compat_uptr_t msgp,
325 compat_ssize_t msgsz, int msgflg); 318 compat_ssize_t msgsz, int msgflg);
326long compat_sys_msgrcv(int msqid, struct compat_msgbuf __user *msgp, 319asmlinkage long compat_sys_msgrcv(int msqid, compat_uptr_t msgp,
327 compat_ssize_t msgsz, long msgtyp, int msgflg); 320 compat_ssize_t msgsz, long msgtyp, int msgflg);
328long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
329#endif
330long compat_sys_msgctl(int first, int second, void __user *uptr); 321long compat_sys_msgctl(int first, int second, void __user *uptr);
331long compat_sys_shmctl(int first, int second, void __user *uptr); 322long compat_sys_shmctl(int first, int second, void __user *uptr);
332long compat_sys_semtimedop(int semid, struct sembuf __user *tsems, 323long compat_sys_semtimedop(int semid, struct sembuf __user *tsems,