* [PATCH] interconnect: fix build warning without DEBUGFS
@ 2018-09-26 12:54 Arnd Bergmann
0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2018-09-26 12:54 UTC (permalink / raw)
To: Georgi Djakov; +Cc: Arnd Bergmann, linux-kernel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-26 12:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26 12:54 [PATCH] interconnect: fix build warning without DEBUGFS Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).