diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2022-12-02 09:31:39 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-12-02 21:59:56 +1100 |
commit | 84ecfe6f38ae4ee779ebd97ee173937fff565bf9 (patch) | |
tree | 57ff1093dd08d8d0c858c96a63afb26872dc537b /arch/mips/sgi-ip22 | |
parent | ad050d2390fccb22aa3e6f65e11757ce7a5a7ca5 (diff) |
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
Diffstat (limited to 'arch/mips/sgi-ip22')
0 files changed, 0 insertions, 0 deletions