[PATCH 07/10] riscv: Make SYS_SUPPORTS_HUGETLBFS depends on MMU

From: Kefeng Wang
Date: Sun May 10 2020 - 22:23:44 EST


HUGETLBFS only used when MMU enabled, add the dependence.

Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx>
---
arch/riscv/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 494e670520ae..d0010ed8e0f4 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -138,6 +138,7 @@ config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y

config SYS_SUPPORTS_HUGETLBFS
+ depends on MMU
def_bool y

config STACKTRACE_SUPPORT
--
2.26.2