Home
last modified time | relevance | path

Searched hist:"84 ecfe6f38ae4ee779ebd97ee173937fff565bf9" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/powerpc/lib/
H A Dcode-patching.cdiff 84ecfe6f38ae4ee779ebd97ee173937fff565bf9 Fri Dec 02 09:31:39 CET 2022 Christophe Leroy <christophe.leroy@csgroup.eu> powerpc/code-patching: Remove #ifdef CONFIG_STRICT_KERNEL_RWX

No need to have one implementation of patch_instruction() for
CONFIG_STRICT_KERNEL_RWX and one for !CONFIG_STRICT_KERNEL_RWX.

In patch_instruction(), call raw_patch_instruction() when
!CONFIG_STRICT_KERNEL_RWX.

In poking_init(), bail out immediately, it will be equivalent
to the weak default implementation.

Everything else is declared static and will be discarded by
GCC when !CONFIG_STRICT_KERNEL_RWX.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f67d2a109404d03e8fdf1ea15388c8778337a76b.1669969781.git.christophe.leroy@csgroup.eu