Skip to content

Commit

Permalink
riscv: mm: Only compile pgtable.c if MMU
Browse files Browse the repository at this point in the history
commit d650899 upstream.

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: Palmer Dabbelt <[email protected]>
Signed-off-by: WangYuli <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Alexandre Ghiti authored and gregkh committed Sep 12, 2024
1 parent 1a8b239 commit 59c9160
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 59c9160

Please sign in to comment.