Skip to contentSkip to conversation

interconnect: fix build error without DEBUGFS

PATCH New Arnd Bergmann 1 participant 1 message Oct 5, 2018 Interconnect API

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 interconnect: fix build error without DEBUGFS

The previous fix was incorrect, and now we get a build failure without CONFIG_DEBUG_FS:

drivers/interconnect/core.c: In function 'icc_init':
drivers/interconnect/core.c:710:32: error: 'icc_summary_fops' undeclared (first use in this function)

Removing the last #ifdef as well makes it all work as intended.

Fixes 8f023d0cb757 ("interconnect: core: Fix unused variable compiler warning")

---
I had sent a different fix earlier, but that was done fore the 8f023d0cb757 commit got applied and conflicted with it, so this new version should go on top.

---
 drivers/interconnect/core.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/interconnect/core.c +0 -3
index ba48aa83a4ac..aac7bdd6c659 100644
@@ -52,8 +52,6 @@ struct icc_path {
 	struct icc_req reqs[];
 };
 
-#ifdef CONFIG_DEBUG_FS
-
 static void icc_summary_show_one(struct seq_file *s, struct icc_node *n)
 {
 	if (!n)
@@ -106,7 +104,6 @@ static const struct file_operations icc_summary_fops = {
 	.llseek		= seq_lseek,
 	.release	= single_release,
 };
-#endif
 
 static struct icc_node *node_find(const int id)
 {
Signature · 1 line
2.18.0