powerpc/syscalls: kill ppc32_select()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 May 2018 13:20:50 +0000 (23:20 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 May 2018 13:25:15 +0000 (23:25 +1000)
it had always been pointless - compat_sys_select() sign-extends
the first argument just fine on its own.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[mpe: Use COMPAT_SPU_NEW() to keep systbl_chk.sh happy]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/systbl.h
arch/powerpc/kernel/sys_ppc32.c

index b91701c0711a4fbdd000fd5b2445ac04165bec83..cdf528089a63245e27328d2da1086499d318d9dd 100644 (file)
@@ -147,7 +147,7 @@ SYSCALL_SPU(setfsuid)
 SYSCALL_SPU(setfsgid)
 SYSCALL_SPU(llseek)
 COMPAT_SYS_SPU(getdents)
-SYSX_SPU(sys_select,ppc32_select,sys_select)
+COMPAT_SPU_NEW(select)
 SYSCALL_SPU(flock)
 SYSCALL_SPU(msync)
 COMPAT_SYS_SPU(readv)
index c11c7337369128b6f164a5b02612f4eb4788848f..bdf58ba1a94ba6c9ba24b2448dde622be2818201 100644 (file)
 #include <asm/syscalls.h>
 #include <asm/switch_to.h>
 
-
-asmlinkage long ppc32_select(u32 n, compat_ulong_t __user *inp,
-               compat_ulong_t __user *outp, compat_ulong_t __user *exp,
-               compat_uptr_t tvp_x)
-{
-       /* sign extend n */
-       return compat_sys_select((int)n, inp, outp, exp, compat_ptr(tvp_x));
-}
-
 unsigned long compat_sys_mmap2(unsigned long addr, size_t len,
                          unsigned long prot, unsigned long flags,
                          unsigned long fd, unsigned long pgoff)