Skip to content

Commit d650899

Browse files
Alexandre Ghitipalmer-dabbelt
authored andcommitted
riscv: mm: Only compile pgtable.c if MMU
All functions defined in there depend on MMU, so no need to compile it for !MMU configs. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20231213203001.179237-4-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent eba2591 commit d650899

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/riscv/mm/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ endif
1313
KCOV_INSTRUMENT_init.o := n
1414

1515
obj-y += init.o
16-
obj-$(CONFIG_MMU) += extable.o fault.o pageattr.o
16+
obj-$(CONFIG_MMU) += extable.o fault.o pageattr.o pgtable.o
1717
obj-y += cacheflush.o
1818
obj-y += context.o
19-
obj-y += pgtable.o
2019
obj-y += pmem.o
2120

2221
ifeq ($(CONFIG_MMU),y)

0 commit comments

Comments
 (0)