Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=271cad6d7e91ff8eea18976311692f99cd667ad3 Commit: 271cad6d7e91ff8eea18976311692f99cd667ad3 Parent: 81772fea4110f7ce8083d52503c9c4ddaa50f75b Author: Andi Kleen <[EMAIL PROTECTED]> AuthorDate: Mon Feb 11 20:03:17 2008 +0100 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Mon Feb 11 20:37:29 2008 -0800
Make topology fallback macros reference their arguments. This avoids warnings with unreferenced variables in the !NUMA case. Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- include/asm-generic/topology.h | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/asm-generic/topology.h b/include/asm-generic/topology.h index 5d9d70c..342a2a0 100644 --- a/include/asm-generic/topology.h +++ b/include/asm-generic/topology.h @@ -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 - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html