[PATCH v2 5/5] riscv: mm: unexport _pgtable_l4_enabled and _pgtable_l5_enabled
Jisheng Zhang
jszhang at kernel.org
Mon Sep 7 08:14:37 PDT 2026
Now, these two vars are only used by kernel itself, especially the code
before MMU on. No modules users any more, unexport them.
Signed-off-by: Jisheng Zhang <jszhang at kernel.org>
---
arch/riscv/mm/init.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index 90bb85c5f167..ed800a4e0e8c 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -59,8 +59,6 @@ EXPORT_SYMBOL(satp_mode);
#ifdef CONFIG_64BIT
bool _pgtable_l4_enabled __ro_after_init = true;
bool _pgtable_l5_enabled __ro_after_init = true;
-EXPORT_SYMBOL(_pgtable_l4_enabled);
-EXPORT_SYMBOL(_pgtable_l5_enabled);
#endif
phys_addr_t phys_ram_base __ro_after_init;
--
2.53.0
More information about the linux-riscv
mailing list