Skip to contentSkip to conversation

nitpick: enclose hotplug only variables in hotplug ifdef

PATCH New Glauber Costa 1 participant 1 message Sep 6, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nitpick: enclose hotplug only variables in hotplug ifdef

These variables are only used when CONFIG_HOTPLUG is enabled, they are ifdef'ed everywhere else. So don't define them when CONFIG_HOTPLUG is not enabled.

---
 lib/percpu_counter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
lib/percpu_counter.c +2 -0
index 28f2c33..30cbe47 100644
@@ -10,8 +10,10 @@
 #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
 
Signature · 1 line
1.7.6