nitpick: enclose hotplug only variables in hotplug ifdef
Subsystems (2)
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.
Signed-off-by Glauber Costa <[email protected]>
CC Andrew Morton <[email protected]>
--- lib/percpu_counter.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
lib/percpu_counter.c +2 -0
@@ -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