x86: remove compat_sys_x86_waitpid()
authorDominik Brodowski <linux@dominikbrodowski.net>
Sun, 18 Mar 2018 07:03:01 +0000 (08:03 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 2 Apr 2018 18:15:03 +0000 (20:15 +0200)
compat_sys_x86_waitpid() is not needed, as it takes the same parameters
(int, *int, int) as the native syscall.

Suggested-by: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: x86@kernel.org
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
arch/x86/entry/syscalls/syscall_32.tbl
arch/x86/ia32/sys_ia32.c
arch/x86/include/asm/sys_ia32.h

index 2a5e99cff8597278412685867f512858254f2b0c..ef6edaf285cdc25cc0ff16aa4b617c6aca9dafbe 100644 (file)
@@ -13,7 +13,7 @@
 4      i386    write                   sys_write
 5      i386    open                    sys_open                        compat_sys_open
 6      i386    close                   sys_close
-7      i386    waitpid                 sys_waitpid                     compat_sys_x86_waitpid
+7      i386    waitpid                 sys_waitpid
 8      i386    creat                   sys_creat
 9      i386    link                    sys_link
 10     i386    unlink                  sys_unlink
index aa024a2dd34fe7017ad1e5d9557b43eca92f6578..23a5260eae677be4787f94059b290b6ca6b50844 100644 (file)
@@ -169,12 +169,6 @@ COMPAT_SYSCALL_DEFINE1(x86_mmap, struct mmap_arg_struct32 __user *, arg)
                               a.offset>>PAGE_SHIFT);
 }
 
-COMPAT_SYSCALL_DEFINE3(x86_waitpid, compat_pid_t, pid, unsigned int __user *,
-                      stat_addr, int, options)
-{
-       return compat_sys_wait4(pid, stat_addr, options, NULL);
-}
-
 /* warning: next two assume little endian */
 COMPAT_SYSCALL_DEFINE5(x86_pread, unsigned int, fd, char __user *, ubuf,
                       u32, count, u32, poslo, u32, poshi)
index 906794aa034e732ec57d32a8be0ef77085a553a6..2ee6e3b966566acc859752cd8876b4635cc067d2 100644 (file)
@@ -35,9 +35,6 @@ asmlinkage long compat_sys_x86_fstatat(unsigned int, const char __user *,
 struct mmap_arg_struct32;
 asmlinkage long compat_sys_x86_mmap(struct mmap_arg_struct32 __user *);
 
-asmlinkage long compat_sys_x86_waitpid(compat_pid_t, unsigned int __user *,
-                                      int);
-
 asmlinkage long compat_sys_x86_pread(unsigned int, char __user *, u32, u32,
                                     u32);
 asmlinkage long compat_sys_x86_pwrite(unsigned int, const char __user *, u32,