Skip to content

Commit

Permalink
lib/percpu_counter.c: enclose hotplug only variables in hotplug ifdef
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Glauber Costa authored and torvalds committed Nov 1, 2011
1 parent b9c321f commit 3a8495c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/percpu_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3a8495c

Please sign in to comment.