powerpc/ptrace: Refactor regs_set_return_{msr/ip}
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 25 Jun 2021 11:13:17 +0000 (11:13 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Jun 2021 14:12:39 +0000 (00:12 +1000)
commitcae4644673ec5f54c77deab67a57c41395a1539f
tree81bb8f8a15ac96a4ba4cd7267556af0a23261aa4
parent5f0f95f1e1b64fe55679059837dafb3439b57012
powerpc/ptrace: Refactor regs_set_return_{msr/ip}

regs_set_return_msr() and regs_set_return_ip() have a copy
of the code of set_return_regs_changed().

Call the later instead.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/baf64a91557d3811c155616a6aa23ed7b3b21da4.1624619582.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/ptrace.h