Simon Guo 261831160d powerpc/ptrace: Fix cppcheck issue in gpr32_set_common/gpr32_get_common()
The ckpt_regs usage in gpr32_set_common/gpr32_get_common() will lead to
following cppcheck error at ifndef CONFIG_PPC_TRANSACTIONAL_MEM case:

[arch/powerpc/kernel/ptrace.c:2062]:
(error) Uninitialized variable: ckpt_regs
[arch/powerpc/kernel/ptrace.c:2130]:
(error) Uninitialized variable: ckpt_regs

The problem is due to gpr32_set_common() used ckpt_regs variable which
only makes sense at #ifdef CONFIG_PPC_TRANSACTIONAL_MEM.

This patch fix this issue by passing in "regs" parameter instead.

Reported-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Simon Guo <wei.guo.simon@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-09-13 17:37:12 +10:00
..
2016-09-13 17:37:05 +10:00
2016-06-14 13:58:26 +10:00
2016-06-21 15:30:56 +10:00
2016-07-15 14:57:47 +10:00
2014-11-27 09:32:58 +11:00
2015-08-06 15:10:20 +10:00
2015-03-24 13:15:52 +11:00
2016-07-15 14:57:47 +10:00
2016-06-14 13:58:26 +10:00
2015-04-07 17:15:13 +10:00
2016-08-09 16:52:00 +10:00