Christophe Leroy 9a32584bc1 powerpc/ptrace: Split gpr32_set_common
objtool reports the following warning:

  arch/powerpc/kernel/ptrace/ptrace-view.o: warning: objtool:
    gpr32_set_common+0x23c (.text+0x860): redundant UACCESS disable

gpr32_set_common() conditionally opens and closes UACCESS based on
whether kbuf pointer is NULL or not. This is wackelig.

Split gpr32_set_common() in two fonctions, one for user one for
kernel.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Fix oops in gpr32_set_common_user() due to NULL kbuf]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/b8d6ae4483fcfd17524e79d803c969694a85cc02.1687428075.git.christophe.leroy@csgroup.eu
2023-08-16 23:54:50 +10:00
..
2023-07-01 09:24:31 -07:00
2021-12-09 22:41:21 +11:00
2022-05-28 11:27:17 -07:00
2022-05-05 22:12:44 +10:00
2022-05-08 22:15:40 +10:00
2022-05-05 22:12:44 +10:00
2022-05-28 11:27:17 -07:00
2022-09-26 23:00:14 +10:00
2020-12-04 01:01:09 +11:00
2022-12-19 07:13:33 -06:00
2022-09-26 23:00:14 +10:00
2021-12-09 22:41:21 +11:00
2022-05-08 22:15:40 +10:00
2022-05-08 22:15:40 +10:00
2022-05-08 22:15:40 +10:00
2022-05-08 22:15:40 +10:00
2022-09-26 20:58:18 +10:00
2023-03-30 23:36:35 +11:00
2022-09-26 23:00:13 +10:00
2023-08-14 21:46:03 +10:00
2022-09-26 22:47:37 +10:00
2021-12-09 22:41:21 +11:00