diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-24 10:52:26 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-24 10:52:26 -0500 |
commit | 561c6731978fa128f29342495f47fc3365898b3d (patch) | |
tree | 6adc3a961708c8ec2d8e3a52e80bf9421f866066 /arch/powerpc | |
parent | aee41fe2b2468bd3276e8eecd36c3e75927e2c53 (diff) |
switch lseek to COMPAT_SYSCALL_DEFINE
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/systbl.h | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/sys_ppc32.c | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h index d906f33441c6..535b6d8a41cc 100644 --- a/arch/powerpc/include/asm/systbl.h +++ b/arch/powerpc/include/asm/systbl.h | |||
@@ -22,7 +22,7 @@ SYSCALL_SPU(chmod) | |||
22 | SYSCALL_SPU(lchown) | 22 | SYSCALL_SPU(lchown) |
23 | SYSCALL(ni_syscall) | 23 | SYSCALL(ni_syscall) |
24 | OLDSYS(stat) | 24 | OLDSYS(stat) |
25 | SYSX_SPU(sys_lseek,ppc32_lseek,sys_lseek) | 25 | COMPAT_SYS_SPU(lseek) |
26 | SYSCALL_SPU(getpid) | 26 | SYSCALL_SPU(getpid) |
27 | COMPAT_SYS(mount) | 27 | COMPAT_SYS(mount) |
28 | SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount) | 28 | SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount) |
diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c index dbc44ba5b078..5677a36f450b 100644 --- a/arch/powerpc/kernel/sys_ppc32.c +++ b/arch/powerpc/kernel/sys_ppc32.c | |||
@@ -146,12 +146,6 @@ asmlinkage long compat_sys_sendfile64_wrapper(u32 out_fd, u32 in_fd, | |||
146 | (off_t __user *)offset, count); | 146 | (off_t __user *)offset, count); |
147 | } | 147 | } |
148 | 148 | ||
149 | off_t ppc32_lseek(unsigned int fd, u32 offset, unsigned int origin) | ||
150 | { | ||
151 | /* sign extend n */ | ||
152 | return sys_lseek(fd, (int)offset, origin); | ||
153 | } | ||
154 | |||
155 | long compat_sys_truncate(const char __user * path, u32 length) | 149 | long compat_sys_truncate(const char __user * path, u32 length) |
156 | { | 150 | { |
157 | /* sign extend length */ | 151 | /* sign extend length */ |