[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220420184056.7886-5-palmer@rivosinc.com>
Date: Wed, 20 Apr 2022 11:40:56 -0700
From: Palmer Dabbelt <palmer@...osinc.com>
To: linux-riscv@...ts.infradead.org, rdunlap@...radead.org
Cc: Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>, aou@...s.berkeley.edu,
anup@...infault.org, vincent.chen@...ive.com, guoren@...nel.org,
Atish Patra <atishp@...osinc.com>,
alexandre.ghiti@...onical.com, jszhang@...nel.org,
vitaly.wool@...sulko.com, gatecat@....me,
wangkefeng.wang@...wei.com, mick@....forth.gr,
panqinglin2020@...as.ac.cn, rppt@...nel.org,
linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux@...osinc.com, Palmer Dabbelt <palmer@...osinc.com>
Subject: [PATCH v2 4/4] RISC-V: Fix the XIP build
From: Palmer Dabbelt <palmer@...osinc.com>
A handful of functions unused functions were enabled during XIP builds,
which themselves didn't build correctly. This just disables the
functions entirely.
Fixes: e8a62cc26ddf ("riscv: Implement sv48 support")
Signed-off-by: Palmer Dabbelt <palmer@...osinc.com>
---
arch/riscv/mm/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index 7bc9a21e29fb..d2054a6cd791 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -660,7 +660,7 @@ static __init pgprot_t pgprot_from_va(uintptr_t va)
}
#endif /* CONFIG_STRICT_KERNEL_RWX */
-#ifdef CONFIG_64BIT
+#if defined(CONFIG_64BIT) && !defined(CONFIG_XIP_KERNEL)
static void __init disable_pgtable_l5(void)
{
pgtable_l5_enabled = false;
--
2.34.1
Powered by blists - more mailing lists