diff options
author | Glauber Costa <glommer@parallels.com> | 2011-10-31 20:12:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:56 -0400 |
commit | 3a8495c739c1c773181a246dbb7c12b5b67a8325 (patch) | |
tree | 6cbd16eaf869da1c5acdb4f89ab3c3da0f2e3c55 /lib | |
parent | b9c321fd87b61f70888511d286500519d8b34141 (diff) |
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 <glommer@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | 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 f087105ed914..f8a3f1a829b8 100644 --- a/lib/percpu_counter.c +++ b/lib/percpu_counter.c | |||
@@ -10,8 +10,10 @@ | |||
10 | #include <linux/module.h> | 10 | #include <linux/module.h> |
11 | #include <linux/debugobjects.h> | 11 | #include <linux/debugobjects.h> |
12 | 12 | ||
13 | #ifdef CONFIG_HOTPLUG_CPU | ||
13 | static LIST_HEAD(percpu_counters); | 14 | static LIST_HEAD(percpu_counters); |
14 | static DEFINE_MUTEX(percpu_counters_lock); | 15 | static DEFINE_MUTEX(percpu_counters_lock); |
16 | #endif | ||
15 | 17 | ||
16 | #ifdef CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER | 18 | #ifdef CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER |
17 | 19 | ||