Commit 2456d738 authored by Hiroshi Shimamoto's avatar Hiroshi Shimamoto Committed by Ingo Molnar

x86: signal: cosmetic unification of sys_rt_sigreturn()

Impact: cleanup

Add #ifdef directive for unification.
Signed-off-by: default avatarHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 666ac7be
...@@ -299,12 +299,19 @@ static long do_rt_sigreturn(struct pt_regs *regs) ...@@ -299,12 +299,19 @@ static long do_rt_sigreturn(struct pt_regs *regs)
return 0; return 0;
} }
#ifdef CONFIG_X86_32
asmlinkage int sys_rt_sigreturn(unsigned long __unused) asmlinkage int sys_rt_sigreturn(unsigned long __unused)
{ {
struct pt_regs *regs = (struct pt_regs *)&__unused; 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)
{
return do_rt_sigreturn(regs);
}
#endif /* CONFIG_X86_32 */
/* /*
* Set up a signal frame. * Set up a signal frame.
......
...@@ -169,10 +169,19 @@ static long do_rt_sigreturn(struct pt_regs *regs) ...@@ -169,10 +169,19 @@ static long do_rt_sigreturn(struct pt_regs *regs)
return 0; return 0;
} }
#ifdef CONFIG_X86_32
asmlinkage int sys_rt_sigreturn(unsigned long __unused)
{
struct pt_regs *regs = (struct pt_regs *)&__unused;
return do_rt_sigreturn(regs);
}
#else /* !CONFIG_X86_32 */
asmlinkage long sys_rt_sigreturn(struct pt_regs *regs) asmlinkage long sys_rt_sigreturn(struct pt_regs *regs)
{ {
return do_rt_sigreturn(regs); return do_rt_sigreturn(regs);
} }
#endif /* CONFIG_X86_32 */
/* /*
* Set up a signal frame. * Set up a signal frame.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment