]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
include/asm-generic/topology.h: Remove unused definition of cpumask_of_node()
authorJohn Garry <john.g.garry@oracle.com>
Wed, 7 Jan 2026 09:40:04 +0000 (09:40 +0000)
committerArnd Bergmann <arnd@arndb.de>
Fri, 30 Jan 2026 15:44:38 +0000 (16:44 +0100)
The definition of cpumask_of_node() in question is guarded by conflicting
CONFIG_NUMA and !CONFIG_NUMA checks, so remove it.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/topology.h

index 4dbe715be65b462c7bbccfa1258450f5288105ef..9865ba48c5b161ad5c45190495f130b354003970 100644 (file)
 #endif
 
 #ifndef cpumask_of_node
-  #ifdef CONFIG_NUMA
-    #define cpumask_of_node(node)      ((node) == 0 ? cpu_online_mask : cpu_none_mask)
-  #else
-    #define cpumask_of_node(node)      ((void)(node), cpu_online_mask)
-  #endif
+#define cpumask_of_node(node)  ((void)(node), cpu_online_mask)
 #endif
 #ifndef pcibus_to_node
 #define pcibus_to_node(bus)    ((void)(bus), -1)
@@ -61,7 +57,7 @@
                                 cpumask_of_node(pcibus_to_node(bus)))
 #endif
 
-#endif /* CONFIG_NUMA */
+#endif /* !CONFIG_NUMA */
 
 #if !defined(CONFIG_NUMA) || !defined(CONFIG_HAVE_MEMORYLESS_NODES)