Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

include/asm-generic/topology.h: Remove unused definition of cpumask_of_node()

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>

authored by

John Garry and committed by
Arnd Bergmann
eed444d0 0f61b186

+2 -6
+2 -6
include/asm-generic/topology.h
··· 45 45 #endif 46 46 47 47 #ifndef cpumask_of_node 48 - #ifdef CONFIG_NUMA 49 - #define cpumask_of_node(node) ((node) == 0 ? cpu_online_mask : cpu_none_mask) 50 - #else 51 - #define cpumask_of_node(node) ((void)(node), cpu_online_mask) 52 - #endif 48 + #define cpumask_of_node(node) ((void)(node), cpu_online_mask) 53 49 #endif 54 50 #ifndef pcibus_to_node 55 51 #define pcibus_to_node(bus) ((void)(bus), -1) ··· 57 61 cpumask_of_node(pcibus_to_node(bus))) 58 62 #endif 59 63 60 - #endif /* CONFIG_NUMA */ 64 + #endif /* !CONFIG_NUMA */ 61 65 62 66 #if !defined(CONFIG_NUMA) || !defined(CONFIG_HAVE_MEMORYLESS_NODES) 63 67