Thread (17 messages) 17 messages, 2 authors, 2021-08-01
STALE1785d REVIEWED: 1 (0M)

[PATCH v3 02/14] include/linux/nodemask.h: define next_memory_node() if !CONFIG_NUMA

From: Yu Zhao <hidden>
Date: 2021-05-20 06:54:14
Also in: lkml, oe-lkp
Subsystem: bitmap api, the rest · Maintainers: Yury Norov, Linus Torvalds

Currently next_memory_node only exists when CONFIG_NUMA=y. This patch
adds the macro for !CONFIG_NUMA.

Signed-off-by: Yu Zhao <redacted>
Tested-by: Konstantin Kharlamov <redacted>
---
 include/linux/nodemask.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h
index ac398e143c9a..89fe4e3592f9 100644
--- a/include/linux/nodemask.h
+++ b/include/linux/nodemask.h
@@ -486,6 +486,7 @@ static inline int num_node_state(enum node_states state)
 #define first_online_node	0
 #define first_memory_node	0
 #define next_online_node(nid)	(MAX_NUMNODES)
+#define next_memory_node(nid)	(MAX_NUMNODES)
 #define nr_node_ids		1U
 #define nr_online_nodes		1U
 
-- 
2.31.1.751.gd2f1c929bd-goog

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help