Re: [PATCH] arch: tile: kernel: signal.c: Use explicitly type case "unsigned long *" for register copy

2014-11-01 Thread Chen Gang
On 11/2/14 4:23, Al Viro wrote: > On Sat, Nov 01, 2014 at 08:49:45PM +0800, Chen Gang wrote: >> setup_sigcontext() wants to copy all kernel related registers to user >> space. So let it copy explicitly instead of copying by exceeding member >> array border. So let code more clearer and avoid warnin

Re: [PATCH] arch: tile: kernel: signal.c: Use explicitly type case "unsigned long *" for register copy

2014-11-01 Thread Al Viro
On Sat, Nov 01, 2014 at 08:49:45PM +0800, Chen Gang wrote: > setup_sigcontext() wants to copy all kernel related registers to user > space. So let it copy explicitly instead of copying by exceeding member > array border. So let code more clearer and avoid warning. Er... Perhaps it would be better

[PATCH] arch: tile: kernel: signal.c: Use explicitly type case "unsigned long *" for register copy

2014-11-01 Thread Chen Gang
setup_sigcontext() wants to copy all kernel related registers to user space. So let it copy explicitly instead of copying by exceeding member array border. So let code more clearer and avoid warning. And for register, better use "unsigned long" instead of "long", too. The related warning (with al