Re: [PATCH 3/3] x86: signal: cosmetic unification of sys_rt_sigreturn()

From: Hiroshi Shimamoto
Date: Fri Nov 21 2008 - 21:08:27 EST


H. Peter Anvin wrote:
> Hiroshi Shimamoto wrote:
>>
>> +#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);
>> }
>
> Why not:
>
> asmlinkage int sys_rt_sigreturn(struct pt_regs regs)
> {
> return do_rt_sigreturn(&regs);
> }
>
> ...?

Good question. I didn't realize about that.
Will take a look.

thanks,
Hiroshi Shimamoto
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/