riscv: Constify sbi_ipi_ops
authorJisheng Zhang <jszhang@kernel.org>
Mon, 29 Mar 2021 18:23:54 +0000 (02:23 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 26 Apr 2021 15:25:10 +0000 (08:25 -0700)
commit300f62c37d4601e5b7967c6399917dc6880070bc
tree53b10298134de2e7faa35d57d269d85cda8ca8e6
parente6a302248cec96c3af4cbfcedc44b0de8a26ebe0
riscv: Constify sbi_ipi_ops

Constify the sbi_ipi_ops so that it will be placed in the .rodata
section. This will cause attempts to modify it to fail when strict
page permissions are in place.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/smp.h
arch/riscv/kernel/sbi.c
arch/riscv/kernel/smp.c