riscv: Annotate pgtable_l{4,5}_enabled with __ro_after_init
authorDawei Li <dawei.li@shingroup.cn>
Wed, 20 Mar 2024 06:47:12 +0000 (14:47 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 30 Apr 2024 17:35:44 +0000 (10:35 -0700)
commit0fdbb06379b1126a8c69ceec28e6e506088614a2
tree62e6e3ce961f9b4afda640c4912462630a14821e
parent13953e381ae2891d1699a73c20e8e7fa31699426
riscv: Annotate pgtable_l{4,5}_enabled with __ro_after_init

pgtable_l{4,5}_enabled are read only after initialization, make explicit
annotation of __ro_after_init on them.

Signed-off-by: Dawei Li <dawei.li@shingroup.cn>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240320064712.442579-3-dawei.li@shingroup.cn
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c