mips: switch to generic compat rt_sigpending()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 25 Dec 2012 20:00:46 +0000 (15:00 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Feb 2013 23:32:59 +0000 (18:32 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mips/Kconfig
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-o32.S
arch/mips/kernel/signal32.c

index 55a2dd700237b94dc8c2e69f6e3e2be89822260c..475e44c8fd2e6900fd5c469070256c96ad6b7c8b 100644 (file)
@@ -43,6 +43,7 @@ config MIPS
        select MODULES_USE_ELF_RELA if MODULES && 64BIT
        select GENERIC_SIGALTSTACK
        select GENERIC_COMPAT_RT_SIGPROCMASK
+       select GENERIC_COMPAT_RT_SIGPENDING
 
 menu "Machine selection"
 
index 14da5687746c0c91ab04978ab2df026ad879e053..5ab549b264b7d80ee9d9629ff6cc855238dc2748 100644 (file)
@@ -229,7 +229,7 @@ EXPORT(sysn32_call_table)
        PTR     sys_getsid
        PTR     sys_capget
        PTR     sys_capset
-       PTR     sys_32_rt_sigpending            /* 6125 */
+       PTR     compat_sys_rt_sigpending        /* 6125 */
        PTR     compat_sys_rt_sigtimedwait
        PTR     sys_32_rt_sigqueueinfo
        PTR     compat_sys_rt_sigsuspend
index 06fae3f394073f068cd7dc0fd9da50ff64953c6f..22fd9c13f37b4401ba2b72eb2a7cf8ce127c73d3 100644 (file)
@@ -388,7 +388,7 @@ sys_call_table:
        PTR     sys32_rt_sigreturn
        PTR     sys_32_rt_sigaction
        PTR     compat_sys_rt_sigprocmask       /* 4195 */
-       PTR     sys_32_rt_sigpending
+       PTR     compat_sys_rt_sigpending
        PTR     compat_sys_rt_sigtimedwait
        PTR     sys_32_rt_sigqueueinfo
        PTR     compat_sys_rt_sigsuspend
index e2f0728c8cc001d392e1d4290df20ce59e128d40..a62b918d683544103beaaf3672f2d69bae559e30 100644 (file)
@@ -614,23 +614,6 @@ out:
        return ret;
 }
 
-SYSCALL_DEFINE2(32_rt_sigpending, compat_sigset_t __user *, uset,
-       unsigned int, sigsetsize)
-{
-       int ret;
-       sigset_t set;
-       mm_segment_t old_fs = get_fs();
-
-       set_fs(KERNEL_DS);
-       ret = sys_rt_sigpending((sigset_t __user *)&set, sigsetsize);
-       set_fs(old_fs);
-
-       if (!ret && put_sigset(&set, uset))
-               return -EFAULT;
-
-       return ret;
-}
-
 SYSCALL_DEFINE3(32_rt_sigqueueinfo, int, pid, int, sig,
        compat_siginfo_t __user *, uinfo)
 {