From: Glauber Costa Date: Wed, 5 Oct 2011 00:43:36 +0000 (+1100) Subject: lib/percpu_counter.c: enclose hotplug only variables in hotplug ifdef X-Git-Tag: next-20111013~1^2~83 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=741402445e8e8606215c489111c90f989cf105d6;p=karo-tx-linux.git lib/percpu_counter.c: enclose hotplug only variables in hotplug ifdef These variables are only used when CONFIG_HOTPLUG_CPU is enabled, they are ifdef'ed everywhere else. So don't define them when CONFIG_HOTPLUG_CPU is not enabled. Signed-off-by: Glauber Costa Signed-off-by: Andrew Morton --- diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c index f087105ed914..f8a3f1a829b8 100644 --- a/lib/percpu_counter.c +++ b/lib/percpu_counter.c @@ -10,8 +10,10 @@ #include #include +#ifdef CONFIG_HOTPLUG_CPU static LIST_HEAD(percpu_counters); static DEFINE_MUTEX(percpu_counters_lock); +#endif #ifdef CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER