aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-02-11 19:31:40 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2009-02-11 19:31:40 -0500
commit744525092727827a9cf0044074db3e22dcf354fd (patch)
tree5079407a2fd7ad3cc5ab79976404916bd88808ea /arch/x86/kernel/signal.c
parentb12bdaf11f935d7be030207e3c77faeaeab8ded3 (diff)
x86: merge sys_rt_sigreturn between 32 and 64 bits
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>
Diffstat (limited to 'arch/x86/kernel/signal.c')
-rw-r--r--arch/x86/kernel/signal.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
index ccfb27412f0f..7cdcd16885ed 100644
--- a/arch/x86/kernel/signal.c
+++ b/arch/x86/kernel/signal.c
@@ -601,7 +601,7 @@ badframe:
601} 601}
602#endif /* CONFIG_X86_32 */ 602#endif /* CONFIG_X86_32 */
603 603
604static long do_rt_sigreturn(struct pt_regs *regs) 604long sys_rt_sigreturn(struct pt_regs *regs)
605{ 605{
606 struct rt_sigframe __user *frame; 606 struct rt_sigframe __user *frame;
607 unsigned long ax; 607 unsigned long ax;
@@ -632,18 +632,6 @@ badframe:
632 return 0; 632 return 0;
633} 633}
634 634
635#ifdef CONFIG_X86_32
636int sys_rt_sigreturn(struct pt_regs *regs)
637{
638 return do_rt_sigreturn(regs);
639}
640#else /* !CONFIG_X86_32 */
641asmlinkage long sys_rt_sigreturn(struct pt_regs *regs)
642{
643 return do_rt_sigreturn(regs);
644}
645#endif /* CONFIG_X86_32 */
646
647/* 635/*
648 * OK, we're invoking a handler: 636 * OK, we're invoking a handler:
649 */ 637 */