Skip to content

Commit d9e418d

Browse files
RISC-V: Fix the XIP build
A handful of functions unused functions were enabled during XIP builds, which themselves didn't build correctly. This just disables the functions entirely. Fixes: e8a62cc ("riscv: Implement sv48 support") Reviewed-by: Guo Ren <guoren@kernel.org> Link: https://lore.kernel.org/r/20220420184056.7886-5-palmer@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent e7681be commit d9e418d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ static __init pgprot_t pgprot_from_va(uintptr_t va)
660660
}
661661
#endif /* CONFIG_STRICT_KERNEL_RWX */
662662

663-
#ifdef CONFIG_64BIT
663+
#if defined(CONFIG_64BIT) && !defined(CONFIG_XIP_KERNEL)
664664
static void __init disable_pgtable_l5(void)
665665
{
666666
pgtable_l5_enabled = false;

0 commit comments

Comments
 (0)