OSDN Git Service

RISC-V: Remove unused code from STRICT_KERNEL_RWX
authorAtish Patra <atish.patra@wdc.com>
Mon, 4 May 2020 04:03:19 +0000 (21:03 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 6 May 2020 00:02:14 +0000 (17:02 -0700)
commit73cb8e2a5863ccc5215660f5123db621bd57dff7
tree48e94f978d24d569cb2b918059105195c2132f58
parentd6d5161280b3d57163f5310f0a0007cdeb729984
RISC-V: Remove unused code from STRICT_KERNEL_RWX

This patch removes the unused functions set_kernel_text_rw/ro.
Currently, it is not being invoked from anywhere and no other architecture
(except arm) uses this code. Even in ARM, these functions are not invoked
from anywhere currently.

Fixes: d27c3c90817e ("riscv: add STRICT_KERNEL_RWX support")
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/set_memory.h
arch/riscv/mm/init.c