Skip to contentSkip to conversation

x86: signal: change type of paramter for sys_rt_sigreturn()

PATCH Applied Hiroshi Shimamoto 2 participants 2 messages Dec 6, 2008 – Dec 8, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: signal: change type of paramter for sys_rt_sigreturn()

From: Hiroshi Shimamoto <[email protected]>

Impact: cleanup on 32-bit

Peter pointed this parameter can be changed.

---
 arch/x86/include/asm/syscalls.h |    2 +-
 arch/x86/kernel/signal.c        |    6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)
arch/x86/include/asm/syscalls.h +1 -1
index 87803da..3a5252c 100644
@@ -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);
arch/x86/kernel/signal.c +2 -4
index b1f4d34..b1cc6da 100644
@@ -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)
Signature · 1 line
1.6.0.4
Applied
#1 lore raw
Quoted 11 lines · Hiroshi Shimamoto

From: Hiroshi Shimamoto <[email protected]>

Impact: cleanup on 32-bit

Peter pointed this parameter can be changed.

---
 arch/x86/include/asm/syscalls.h |    2 +-
 arch/x86/kernel/signal.c        |    6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

applied to tip/x86/signal, thanks!

Ingo