]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/inst: Add __copy_inst_from_kernel_nofault()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 9 May 2022 05:36:18 +0000 (07:36 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:26 +0000 (15:58 +1000)
commit64d00feabccbbb540e284dd772c73ff418fbdc74
tree248f69f76acc9a4aa43615b90d7e0a7770e993fb
parent678b71449c641a87fe105a76ce97b8106cc4ebff
powerpc/inst: Add __copy_inst_from_kernel_nofault()

On the same model as get_user() versus __get_user(),
introduce __copy_inst_from_kernel_nofault() which doesn't
check address.

To be used by callers that have already checked that the adress
is a kernel address.

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