x86: signal: change type of paramter for sys_rt_sigreturn()
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Sat, 6 Dec 2008 01:17:09 +0000 (17:17 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 8 Dec 2008 14:21:35 +0000 (15:21 +0100)
Impact: cleanup on 32-bit

Peter pointed this parameter can be changed.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/syscalls.h
arch/x86/kernel/signal.c

index 87803da440100d50222d86cf7a1ac9cf00ed29ca..3a5252c4b8d6aa543112a539783bd599632b5e75 100644 (file)
@@ -33,7 +33,7 @@ asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
                             struct old_sigaction __user *);
 asmlinkage int sys_sigaltstack(unsigned long);
 asmlinkage unsigned long sys_sigreturn(unsigned long);
-asmlinkage int sys_rt_sigreturn(unsigned long);
+asmlinkage int sys_rt_sigreturn(struct pt_regs);
 
 /* kernel/ioport.c */
 asmlinkage long sys_iopl(unsigned long);
index b1f4d34e0a3850566252d848817d519aa02da16a..b1cc6da64208bcb621bd3a841e76b53055c6a95e 100644 (file)
@@ -642,11 +642,9 @@ badframe:
 }
 
 #ifdef CONFIG_X86_32
-asmlinkage int sys_rt_sigreturn(unsigned long __unused)
+asmlinkage int sys_rt_sigreturn(struct pt_regs regs)
 {
-       struct pt_regs *regs = (struct pt_regs *)&__unused;
-
-       return do_rt_sigreturn(regs);
+       return do_rt_sigreturn(&regs);
 }
 #else /* !CONFIG_X86_32 */
 asmlinkage long sys_rt_sigreturn(struct pt_regs *regs)