aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-02-11 14:03:17 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-11 23:37:29 -0500
commit271cad6d7e91ff8eea18976311692f99cd667ad3 (patch)
treec56b923e6ad3c0228a0265db07e2abf7ed6b1ad8 /include/asm-generic
parent81772fea4110f7ce8083d52503c9c4ddaa50f75b (diff)
Make topology fallback macros reference their arguments.
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>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/topology.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-generic/topology.h b/include/asm-generic/topology.h
index 5d9d70cd17fc..342a2a0105c4 100644
--- a/include/asm-generic/topology.h
+++ b/include/asm-generic/topology.h
@@ -30,19 +30,19 @@
30/* Other architectures wishing to use this simple topology API should fill 30/* Other architectures wishing to use this simple topology API should fill
31 in the below functions as appropriate in their own <asm/topology.h> file. */ 31 in the below functions as appropriate in their own <asm/topology.h> file. */
32#ifndef cpu_to_node 32#ifndef cpu_to_node
33#define cpu_to_node(cpu) (0) 33#define cpu_to_node(cpu) ((void)(cpu),0)
34#endif 34#endif
35#ifndef parent_node 35#ifndef parent_node
36#define parent_node(node) (0) 36#define parent_node(node) ((void)(node),0)
37#endif 37#endif
38#ifndef node_to_cpumask 38#ifndef node_to_cpumask
39#define node_to_cpumask(node) (cpu_online_map) 39#define node_to_cpumask(node) ((void)node, cpu_online_map)
40#endif 40#endif
41#ifndef node_to_first_cpu 41#ifndef node_to_first_cpu
42#define node_to_first_cpu(node) (0) 42#define node_to_first_cpu(node) ((void)(node),0)
43#endif 43#endif
44#ifndef pcibus_to_node 44#ifndef pcibus_to_node
45#define pcibus_to_node(node) (-1) 45#define pcibus_to_node(bus) ((void)(bus), -1)
46#endif 46#endif
47 47
48#ifndef pcibus_to_cpumask 48#ifndef pcibus_to_cpumask