powerpc/ptrace: Move set_return_regs_changed() before regs_set_return_{msr/ip}
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 25 Jun 2021 11:13:16 +0000 (11:13 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Jun 2021 14:12:39 +0000 (00:12 +1000)
commit5f0f95f1e1b64fe55679059837dafb3439b57012
tree1cfe9d9167406ce5d405ce9c4cafd4526f95ec93
parent7c6986ade69e3c81bac831645bc72109cd798a80
powerpc/ptrace: Move set_return_regs_changed() before 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().

Move up set_return_regs_changed() so it can be reused by
regs_set_return_{msr/ip}

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