From: Glauber Costa <glommer@parallels.com>
To: linux-kernel@vger.kernel.org
Cc: Glauber Costa <glommer@parallels.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] nitpick: enclose hotplug only variables in hotplug ifdef
Date: Mon, 5 Sep 2011 23:34:19 -0300 [thread overview]
Message-ID: <1315276459-10775-1-git-send-email-glommer@parallels.com> (raw)
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@parallels.com>
CC: Andrew Morton <akpm@linux-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
reply other threads:[~2011-09-06 2:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1315276459-10775-1-git-send-email-glommer@parallels.com \
--to=glommer@parallels.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®