[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1315276459-10775-1-git-send-email-glommer@parallels.com>
Date: Mon, 5 Sep 2011 23:34:19 -0300
From: Glauber Costa <glommer@...allels.com>
To: linux-kernel@...r.kernel.org
Cc: Glauber Costa <glommer@...allels.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] 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 <glommer@...allels.com>
CC: Andrew Morton <akpm@...ux-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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists