]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86: merge sys_rt_sigreturn between 32 and 64 bits
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 12 Feb 2009 00:31:40 +0000 (16:31 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 12 Feb 2009 00:31:40 +0000 (16:31 -0800)
Impact: cleanup

With the recent changes in the 32-bit code to make system calls which
use struct pt_regs take a pointer, sys_rt_sigreturn() have become
identical between 32 and 64 bits, and both are empty wrappers around
do_rt_sigreturn().  Remove both wrappers and rename both to
sys_rt_sigreturn().

Cc: Brian Gerst <brgerst@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/syscalls.h
arch/x86/kernel/signal.c

index 77bb31a88ba8248b0084e8916d5a13ea2165f301..68b1be10cfadba52faa8a1f159b01bf5da3cb5fd 100644 (file)
@@ -40,7 +40,7 @@ asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
                             struct old_sigaction __user *);
 int sys_sigaltstack(struct pt_regs *);
 unsigned long sys_sigreturn(struct pt_regs *);
-int sys_rt_sigreturn(struct pt_regs *);
+long sys_rt_sigreturn(struct pt_regs *);
 
 /* kernel/ioport.c */
 long sys_iopl(struct pt_regs *);
index ccfb27412f0f817636beaffe044bc4b8166a2ba9..7cdcd16885ed9564b9f631de7b2ee2edc13862ac 100644 (file)
@@ -601,7 +601,7 @@ badframe:
 }
 #endif /* CONFIG_X86_32 */
 
-static long do_rt_sigreturn(struct pt_regs *regs)
+long sys_rt_sigreturn(struct pt_regs *regs)
 {
        struct rt_sigframe __user *frame;
        unsigned long ax;
@@ -632,18 +632,6 @@ badframe:
        return 0;
 }
 
-#ifdef CONFIG_X86_32
-int sys_rt_sigreturn(struct pt_regs *regs)
-{
-       return do_rt_sigreturn(regs);
-}
-#else /* !CONFIG_X86_32 */
-asmlinkage long sys_rt_sigreturn(struct pt_regs *regs)
-{
-       return do_rt_sigreturn(regs);
-}
-#endif /* CONFIG_X86_32 */
-
 /*
  * OK, we're invoking a handler:
  */