summaryrefslogtreecommitdiff
path: root/include/linux/numa.h
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2025-02-14 20:40:01 +0100
committerTejun Heo <tj@kernel.org>2025-02-16 06:52:19 -1000
commit14a8262f505bc4478c50e66309057bc0d0d4b62e (patch)
treea2573d083669eef13b97a51eac6e4bba07b8a7d8 /include/linux/numa.h
parent7665054ee0dd0caba6f5f7bae48aa5f221218496 (diff)
downloadlinux-next-14a8262f505bc4478c50e66309057bc0d0d4b62e.tar.gz
linux-next-14a8262f505bc4478c50e66309057bc0d0d4b62e.zip
nodemask: numa: reorganize inclusion path
Nodemasks now pull linux/numa.h for MAX_NUMNODES and NUMA_NO_NODE macros. This series makes numa.h depending on nodemasks, so we hit a circular dependency. Nodemasks library is highly employed by NUMA code, and it would be logical to resolve the circular dependency by making NUMA headers dependent nodemask.h. Signed-off-by: Yury Norov [NVIDIA] <yury.norov@gmail.com> Signed-off-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/numa.h')
-rw-r--r--include/linux/numa.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/linux/numa.h b/include/linux/numa.h
index 3567e40329eb..31d8bf8a951a 100644
--- a/include/linux/numa.h
+++ b/include/linux/numa.h
@@ -3,16 +3,8 @@
#define _LINUX_NUMA_H
#include <linux/init.h>
#include <linux/types.h>
+#include <linux/nodemask.h>
-#ifdef CONFIG_NODES_SHIFT
-#define NODES_SHIFT CONFIG_NODES_SHIFT
-#else
-#define NODES_SHIFT 0
-#endif
-
-#define MAX_NUMNODES (1 << NODES_SHIFT)
-
-#define NUMA_NO_NODE (-1)
#define NUMA_NO_MEMBLK (-1)
static inline bool numa_valid_node(int nid)