riscv: TRANSPARENT_HUGEPAGE: depends on MMU
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 25 May 2021 00:13:02 +0000 (17:13 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sun, 30 May 2021 01:17:22 +0000 (18:17 -0700)
commit7fa865f5640a46ed9d3655dd19583fe750e85a8a
tree2a6a028b47e38155aeaf288439266dad126c2451
parent010623568222bd144eb73aa9f3b46c79b63d7676
riscv: TRANSPARENT_HUGEPAGE: depends on MMU

Fix a Kconfig warning and many build errors:

WARNING: unmet direct dependencies detected for COMPACTION
  Depends on [n]: MMU [=n]
  Selected by [y]:
  - TRANSPARENT_HUGEPAGE [=y] && HAVE_ARCH_TRANSPARENT_HUGEPAGE [=y]

and the subseqent thousands of build errors and warnings.

Fixes: e88b333142e4 ("riscv: mm: add THP support on 64-bit")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig