Skip to content

Commit

Permalink
riscv: mm: Only compile pgtable.c if MMU
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexandre Ghiti authored and palmer-dabbelt committed Dec 20, 2023
1 parent eba2591 commit d650899
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/riscv/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d650899

Please sign in to comment.