Commit 2da06b4e authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Ingo Molnar

x86: clean up arch/x86/ia32/ipc32.c

White space and coding style cleanup.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 99b9cdf7
...@@ -9,9 +9,8 @@ ...@@ -9,9 +9,8 @@
#include <linux/ipc.h> #include <linux/ipc.h>
#include <linux/compat.h> #include <linux/compat.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)
{ {
int version; int version;
...@@ -19,36 +18,35 @@ sys32_ipc(u32 call, int first, int second, int third, ...@@ -19,36 +18,35 @@ sys32_ipc(u32 call, int first, int second, int third,
call &= 0xffff; call &= 0xffff;
switch (call) { switch (call) {
case SEMOP: case SEMOP:
/* struct sembuf is the same on 32 and 64bit :)) */ /* struct sembuf is the same on 32 and 64bit :)) */
return sys_semtimedop(first, compat_ptr(ptr), second, NULL); return sys_semtimedop(first, compat_ptr(ptr), second, NULL);
case SEMTIMEDOP: case SEMTIMEDOP:
return compat_sys_semtimedop(first, compat_ptr(ptr), second, return compat_sys_semtimedop(first, compat_ptr(ptr), second,
compat_ptr(fifth)); compat_ptr(fifth));
case SEMGET: case SEMGET:
return sys_semget(first, second, third); return sys_semget(first, second, third);
case SEMCTL: case SEMCTL:
return compat_sys_semctl(first, second, third, compat_ptr(ptr)); return compat_sys_semctl(first, second, third, compat_ptr(ptr));
case MSGSND: case MSGSND:
return compat_sys_msgsnd(first, second, third, compat_ptr(ptr)); return compat_sys_msgsnd(first, second, third, compat_ptr(ptr));
case MSGRCV: case MSGRCV:
return compat_sys_msgrcv(first, second, fifth, third, return compat_sys_msgrcv(first, second, fifth, third,
version, compat_ptr(ptr)); version, compat_ptr(ptr));
case MSGGET: case MSGGET:
return sys_msgget((key_t) first, second); return sys_msgget((key_t) first, second);
case MSGCTL: case MSGCTL:
return compat_sys_msgctl(first, second, compat_ptr(ptr)); return compat_sys_msgctl(first, second, compat_ptr(ptr));
case SHMAT: case SHMAT:
return compat_sys_shmat(first, second, third, version, return compat_sys_shmat(first, second, third, version,
compat_ptr(ptr)); compat_ptr(ptr));
break; case SHMDT:
case SHMDT:
return sys_shmdt(compat_ptr(ptr)); return sys_shmdt(compat_ptr(ptr));
case SHMGET: case SHMGET:
return sys_shmget(first, (unsigned)second, third); return sys_shmget(first, (unsigned)second, third);
case SHMCTL: case SHMCTL:
return compat_sys_shmctl(first, second, compat_ptr(ptr)); return compat_sys_shmctl(first, second, compat_ptr(ptr));
} }
return -ENOSYS; return -ENOSYS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment