]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit592d16e2e15915329aa6d3a021a9ccf01b62b47d
tree6d6d0a96b58b2f1a4312f95b0357dc5764078626
parenta561d8dd5bcd0a2a8f78b6ca1a2abe5618f9e30c
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