Unverified Commit eed444d0 authored by John Garry's avatar John Garry Committed by Arnd Bergmann
Browse files

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: default avatarJohn Garry <john.g.garry@oracle.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 0f61b186
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -45,12 +45,8 @@
#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
#endif
#ifndef pcibus_to_node
#define pcibus_to_node(bus)	((void)(bus), -1)
#endif
@@ -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)