powerpc/inst: Refactor ___get_user_instr()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 29 Nov 2021 17:49:37 +0000 (18:49 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 Dec 2021 11:41:20 +0000 (22:41 +1100)
commit3261d99adba269a024d0e55737beeedec5eba00e
tree6d6d0a96b58b2f1a4312f95b0357dc5764078626
parent37eb7ca91b692e8e49e7dd50158349a6c8fb5b09
powerpc/inst: Refactor ___get_user_instr()

PPC64 version of ___get_user_instr() can be used for PPC32 as well,
by simply disabling the suffix part with IS_ENABLED(CONFIG_PPC64).

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