Skip to content

Commit

Permalink
Make topology fallback macros reference their arguments.
Browse files Browse the repository at this point in the history
This avoids warnings with unreferenced variables in the !NUMA case.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Feb 12, 2008
1 parent 81772fe commit 271cad6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/asm-generic/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
/* Other architectures wishing to use this simple topology API should fill
in the below functions as appropriate in their own <asm/topology.h> file. */
#ifndef cpu_to_node
#define cpu_to_node(cpu) (0)
#define cpu_to_node(cpu) ((void)(cpu),0)
#endif
#ifndef parent_node
#define parent_node(node) (0)
#define parent_node(node) ((void)(node),0)
#endif
#ifndef node_to_cpumask
#define node_to_cpumask(node) (cpu_online_map)
#define node_to_cpumask(node) ((void)node, cpu_online_map)
#endif
#ifndef node_to_first_cpu
#define node_to_first_cpu(node) (0)
#define node_to_first_cpu(node) ((void)(node),0)
#endif
#ifndef pcibus_to_node
#define pcibus_to_node(node) (-1)
#define pcibus_to_node(bus) ((void)(bus), -1)
#endif

#ifndef pcibus_to_cpumask
Expand Down

0 comments on commit 271cad6

Please sign in to comment.