From: Arnd Bergmann <arnd@arndb.de>
To: Georgi Djakov <georgi.djakov@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>, linux-kernel@vger.kernel.org
Subject: [PATCH] interconnect: fix build warning without DEBUGFS
Date: Wed, 26 Sep 2018 14:54:49 +0200 [thread overview]
Message-ID: <20180926125536.2125929-1-arnd@arndb.de> (raw)
The icc_debugfs_dir variable is only used inside of an #ifdef
and should be moved into the same to avoid a harmless warning:
drivers/interconnect/core.c:26:23: error: 'icc_debugfs_dir' defined but not used [-Werror=unused-variable]
Fixes: d54599e06b06 ("interconnect: Allow endpoints translation via DT")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/interconnect/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c
index 2740f1a441d8..2d8709cf59a4 100644
--- a/drivers/interconnect/core.c
+++ b/drivers/interconnect/core.c
@@ -23,7 +23,6 @@
static DEFINE_IDR(icc_idr);
static LIST_HEAD(icc_provider_list);
static DEFINE_MUTEX(icc_lock);
-static struct dentry *icc_debugfs_dir;
/**
* struct icc_req - constraints that are attached to each node
@@ -54,6 +53,8 @@ struct icc_path {
#ifdef CONFIG_DEBUG_FS
+static struct dentry *icc_debugfs_dir;
+
static void icc_summary_show_one(struct seq_file *s, struct icc_node *n)
{
if (!n)
--
2.18.0
reply other threads:[~2018-09-26 12:55 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=20180926125536.2125929-1-arnd@arndb.de \
--to=arnd@arndb.de \
--cc=georgi.djakov@linaro.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®