mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] RISCV: Add some depends for NUMA
@ 2021-02-03 14:23 Kefeng Wang
  2021-02-03 19:59 ` Atish Patra
  2021-02-05  6:58 ` Palmer Dabbelt
  0 siblings, 2 replies; 5+ messages in thread
From: Kefeng Wang @ 2021-02-03 14:23 UTC (permalink / raw)
  To: palmer, atish.patra, linux-riscv
  Cc: Palmer Dabbelt, Paul Walmsley, linux-kernel, Kefeng Wang

The numa feature is useless for riscv32 platform(MAXPHYSMEM_1GB if 32bit),
and it should depends on SMP feature, this also fix the build error,

  riscv64-buildroot-linux-gnu-ld: mm/page_alloc.o: in function `.L0 ':
  page_alloc.c:(.text+0x4808): undefined reference to `node_reclaim_distance'

Fixes: 4f0e8eef772e ("riscv: Add numa support for riscv64 platform")
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 arch/riscv/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 22fa17898d29..ac7f5801bd82 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -312,6 +312,8 @@ endchoice
 # Common NUMA Features
 config NUMA
 	bool "NUMA Memory Allocation and Scheduler Support"
+	depends on SMP
+	depends on 64BIT
 	select GENERIC_ARCH_NUMA
 	select OF_NUMA
 	select ARCH_SUPPORTS_NUMA_BALANCING
-- 
2.26.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-05  7:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 14:23 [PATCH -next] RISCV: Add some depends for NUMA Kefeng Wang
2021-02-03 19:59 ` Atish Patra
2021-02-04  9:17   ` Kefeng Wang
2021-02-05  6:58 ` Palmer Dabbelt
2021-02-05  7:53   ` Kefeng Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®