lib/percpu_counter.c: enclose hotplug only variables in hotplug ifdef
[linux-2.6.git] / lib / percpu_counter.c
index f087105..f8a3f1a 100644 (file)
 #include <linux/module.h>
 #include <linux/debugobjects.h>
 
+#ifdef CONFIG_HOTPLUG_CPU
 static LIST_HEAD(percpu_counters);
 static DEFINE_MUTEX(percpu_counters_lock);
+#endif
 
 #ifdef CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER