cpumask: fix unused variable warning on CONFIG_NUMA=n

Here's the warning:

arch/x86/kernel/cpu/intel_cacheinfo.c: In function 'show_cache_disable':
arch/x86/kernel/cpu/intel_cacheinfo.c:725: warning: unused variable 'mask'
arch/x86/kernel/cpu/intel_cacheinfo.c: In function 'store_cache_disable':
arch/x86/kernel/cpu/intel_cacheinfo.c:760: warning: unused variable 'mask'

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 arch/x86/include/asm/topology.h |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h
--- a/arch/x86/include/asm/topology.h
+++ b/arch/x86/include/asm/topology.h
@@ -164,7 +164,10 @@ extern int __node_distance(int, int);
 #else /* !CONFIG_NUMA */
 
 #define numa_node_id()		0
-#define	cpu_to_node(cpu)	0
+static inline int cpu_to_node(int cpu)
+{
+	return 0;
+}
 #define	early_cpu_to_node(cpu)	0
 
 static inline const cpumask_t *cpumask_of_node(int node)
