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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent e7681be commit d9e418d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)