* [PATCH] riscv: mm: unexport satp_mode
@ 2026-08-05 1:01 Jisheng Zhang
2026-08-06 17:46 ` Paul Walmsley
0 siblings, 1 reply; 2+ messages in thread
From: Jisheng Zhang @ 2026-08-05 1:01 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti
Cc: linux-riscv, linux-kernel
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
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] riscv: mm: unexport satp_mode
2026-08-05 1:01 [PATCH] riscv: mm: unexport satp_mode Jisheng Zhang
@ 2026-08-06 17:46 ` Paul Walmsley
0 siblings, 0 replies; 2+ messages in thread
From: Paul Walmsley @ 2026-08-06 17:46 UTC (permalink / raw)
To: Jisheng Zhang
Cc: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
linux-riscv, linux-kernel
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
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-06 17:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-05 1:01 [PATCH] riscv: mm: unexport satp_mode Jisheng Zhang
2026-08-06 17:46 ` Paul Walmsley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox