riscv: mm: Only compile pgtable.c if MMU
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 13 Dec 2023 20:30:00 +0000 (21:30 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 20 Dec 2023 18:48:14 +0000 (10:48 -0800)
commitd6508999d1882ddd0db8b3b4bd7967d83e9909fa
treecefca01f63cecc6f332bd3727528eddcace2e64d
parenteba2591d99d1f14a04c8a8a845ab0795b93f5646
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>
arch/riscv/mm/Makefile