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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
Alexandre Ghiti authored and RevySR committed Aug 13, 2024
1 parent e643678 commit d8f5a75
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 d8f5a75

Please sign in to comment.