mips: use sane prototype for sys_rt_sigsuspend()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 28 Dec 2012 17:41:03 +0000 (12:41 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Feb 2013 23:14:17 +0000 (18:14 -0500)
we want to do that before branchpoint for arch-* to be able to
consolidate sys_rt_sigsuspend() declarations.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mips/kernel/signal.c

index b6aa77035019bc4913468fbf551f21ef9e9898aa..4d790d1f03d660b4a91b9226f30dad1c29d1a372 100644 (file)
@@ -259,18 +259,14 @@ asmlinkage int sys_sigsuspend(nabi_no_regargs struct pt_regs regs)
 }
 #endif
 
-asmlinkage int sys_rt_sigsuspend(nabi_no_regargs struct pt_regs regs)
+SYSCALL_DEFINE2(rt_sigsuspend, sigset_t __user *,unewset, size_t, sigsetsize)
 {
        sigset_t newset;
-       sigset_t __user *unewset;
-       size_t sigsetsize;
 
        /* XXX Don't preclude handling different sized sigset_t's.  */
-       sigsetsize = regs.regs[5];
        if (sigsetsize != sizeof(sigset_t))
                return -EINVAL;
 
-       unewset = (sigset_t __user *) regs.regs[4];
        if (copy_from_user(&newset, unewset, sizeof(newset)))
                return -EFAULT;
        return sigsuspend(&newset);