riscv: Make NUMA depend on MMU
authorKefeng Wang <wangkefeng.wang@huawei.com>
Tue, 30 Mar 2021 13:25:31 +0000 (21:25 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 2 Apr 2021 04:37:08 +0000 (21:37 -0700)
NUMA is useless when NOMMU, and it leads some build error,
make it depend on MMU.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig

index 87d7b52f278f0c36df89414ac93f9cec9d25afbc..0d0cf67359cba6e13fe9c66056f9cec7d1918e5e 100644 (file)
@@ -314,7 +314,7 @@ endchoice
 # Common NUMA Features
 config NUMA
        bool "NUMA Memory Allocation and Scheduler Support"
-       depends on SMP
+       depends on SMP && MMU
        select GENERIC_ARCH_NUMA
        select OF_NUMA
        select ARCH_SUPPORTS_NUMA_BALANCING