]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Explicitly copy elements of pt_regs
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 27 Jun 2008 06:18:27 +0000 (16:18 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 1 Jul 2008 01:28:59 +0000 (11:28 +1000)
commitea080b8d180a897ab1724d546e8da54de69c89d7
tree9f9727a0d86a52ee663db438495ef25889ff6319
parentfdf00a5bb2b8349c775944fc2e1e99b876f2c437
powerpc: Explicitly copy elements of pt_regs

Gcc 4.3 produced this warning:

arch/powerpc/kernel/signal_64.c: In function 'restore_sigcontext':
arch/powerpc/kernel/signal_64.c:161: warning: array subscript is above array bounds

This is caused by us copying to aliases of elements of the pt_regs
structure.  Make those explicit.

This adds one extra __get_user and unrolls a loop.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/signal_64.c