* [PATCH] nitpick: enclose hotplug only variables in hotplug ifdef
@ 2011-09-06 2:34 Glauber Costa
0 siblings, 0 replies; only message in thread
From: Glauber Costa @ 2011-09-06 2:34 UTC (permalink / raw)
To: linux-kernel; +Cc: Glauber Costa, Andrew Morton
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.
Signed-off-by: Glauber Costa <glommer@parallels.com>
CC: Andrew Morton <akpm@linux-foundation.org>
---
lib/percpu_counter.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c
index 28f2c33..30cbe47 100644
--- a/lib/percpu_counter.c
+++ b/lib/percpu_counter.c
@@ -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
--
1.7.6
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-06 2:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-06 2:34 [PATCH] nitpick: enclose hotplug only variables in hotplug ifdef Glauber Costa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®