riscv: Constify sys_call_table
authorJisheng Zhang <jszhang@kernel.org>
Mon, 29 Mar 2021 18:23:24 +0000 (02:23 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 26 Apr 2021 15:25:09 +0000 (08:25 -0700)
commite6a302248cec96c3af4cbfcedc44b0de8a26ebe0
treed5a7e610acdcd462632a79dd58e498f149433f73
parentde31ea4a1181a8bb4d32ab74f3434f2bc2b79122
riscv: Constify sys_call_table

Constify the sys_call_table so that it will be placed in the .rodata
section. This will cause attempts to modify the table 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/syscall.h
arch/riscv/kernel/syscall_table.c