Thread (1 message) 1 message, 1 author, 2024-09-06

[PATCH 6.6 3/4] riscv: mm: Only compile pgtable.c if MMU

DORMANTno replies

From: WangYuli <hidden>
Date: 2024-09-06 08:23:59
Also in: kvm, kvm-riscv, linux-efi, linux-riscv, lkml, stable
Subsystem: risc-v architecture, the rest · Maintainers: Paul Walmsley, Palmer Dabbelt, Albert Ou, Linus Torvalds

From: Alexandre Ghiti <redacted>

[ Upstream commit d6508999d1882ddd0db8b3b4bd7967d83e9909fa ]

All functions defined in there depend on MMU, so no need to compile it
for !MMU configs.

Signed-off-by: Alexandre Ghiti <redacted>
Link: https://lore.kernel.org/r/20231213203001.179237-4-alexghiti@rivosinc.com (local)
Signed-off-by: Palmer Dabbelt <redacted>
Signed-off-by: WangYuli <redacted>
---
 arch/riscv/mm/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile
index 3a4dfc8babcf..2c869f8026a8 100644
--- a/arch/riscv/mm/Makefile
+++ b/arch/riscv/mm/Makefile
@@ -13,10 +13,9 @@ endif
 KCOV_INSTRUMENT_init.o := n
 
 obj-y += init.o
-obj-$(CONFIG_MMU) += extable.o fault.o pageattr.o
+obj-$(CONFIG_MMU) += extable.o fault.o pageattr.o pgtable.o
 obj-y += cacheflush.o
 obj-y += context.o
-obj-y += pgtable.o
 obj-y += pmem.o
 
 ifeq ($(CONFIG_MMU),y)
-- 
2.43.4

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help