Skip to contentSkip to conversation

riscv: mm: unexport satp_mode

PATCH In review Jisheng Zhang 2 participants 2 messages Aug 5 – Aug 6 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: mm: unexport satp_mode

Since satp_mode introduction, it is only utilized by built-in kernel code.

---
 arch/riscv/mm/init.c | 1 -
 1 file changed, 1 deletion(-)
arch/riscv/mm/init.c +0 -1
index 3e450890be07..727083d046b9 100644
@@ -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;
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 4 lines · Jisheng Zhang

Since satp_mode introduction, it is only utilized by built-in kernel code.

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

- Paul