[PATCH] riscv: mm: unexport satp_mode

Jisheng Zhang posted 1 patch 1 month, 4 weeks ago
arch/riscv/mm/init.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] riscv: mm: unexport satp_mode
Posted by Jisheng Zhang 1 month, 4 weeks ago
Since satp_mode introduction, it is only utilized by built-in kernel
code.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
 arch/riscv/mm/init.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index 3e450890be07..727083d046b9 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -49,7 +49,6 @@ u64 satp_mode __ro_after_init = SATP_MODE_57;
 #else
 u64 satp_mode __ro_after_init = SATP_MODE_32;
 #endif
-EXPORT_SYMBOL(satp_mode);
 
 #ifdef CONFIG_64BIT
 bool pgtable_l4_enabled __ro_after_init = true;
-- 
2.53.0
Re: [PATCH] riscv: mm: unexport satp_mode
Posted by Paul Walmsley 1 month, 3 weeks ago
On Wed, 5 Aug 2026, Jisheng Zhang wrote:

> Since satp_mode introduction, it is only utilized by built-in kernel
> code.
> 
> Signed-off-by: Jisheng Zhang <jszhang@kernel.org>

As Sashiko points out, this breaks the build when CONFIG_KVM=m.


- Paul