Skip to contentSkip to conversation

genirq/debugfs: fix build for !CONFIG_IRQ_DOMAIN

PATCH New Sebastian Ott 2 participants 2 messages Jul 4, 2017 IRQ

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 genirq/debugfs: fix build for !CONFIG_IRQ_DOMAIN

Fix this build error:

kernel/irq/internals.h:440:20: error: inlining failed in call to always_inline
'irq_domain_debugfs_init': function body not available
kernel/irq/debugfs.c:202:2: note: called from here
irq_domain_debugfs_init(root_dir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---
 kernel/irq/internals.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
kernel/irq/internals.h +3 -1
index 9da14d1..dbfba99 100644
@@ -437,7 +437,9 @@ static inline void irq_remove_debugfs_entry(struct irq_desc *desc)
 # ifdef CONFIG_IRQ_DOMAIN
 void irq_domain_debugfs_init(struct dentry *root);
 # else
-static inline void irq_domain_debugfs_init(struct dentry *root);
+static inline void irq_domain_debugfs_init(struct dentry *root)
+{
+}
 # endif
 #else /* CONFIG_GENERIC_IRQ_DEBUGFS */
 static inline void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *d)
Signature · 1 line
2.7.4
#1 lore raw

[tip:irq/urgent] genirq/debugfs: Fix build for !CONFIG_IRQ_DOMAIN

genirq/debugfs: Fix build for !CONFIG_IRQ_DOMAIN
Commit-ID:  e5682b4eecb2b73282853d0ef314d3164b986997
Gitweb:     http://git.kernel.org/tip/e5682b4eecb2b73282853d0ef314d3164b986997
Author:     Sebastian Ott <[email protected]>
AuthorDate: Tue, 4 Jul 2017 11:25:15 +0200
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Tue, 4 Jul 2017 12:36:43 +0200

genirq/debugfs: Fix build for !CONFIG_IRQ_DOMAIN

Fix this build error:

kernel/irq/internals.h:440:20: error: inlining failed in call to always_inline
'irq_domain_debugfs_init': function body not available
kernel/irq/debugfs.c:202:2: note: called from here
irq_domain_debugfs_init(root_dir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---
 kernel/irq/internals.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
kernel/irq/internals.h +3 -1
index 9da14d1..dbfba99 100644
@@ -437,7 +437,9 @@ static inline void irq_remove_debugfs_entry(struct irq_desc *desc)
 # ifdef CONFIG_IRQ_DOMAIN
 void irq_domain_debugfs_init(struct dentry *root);
 # else
-static inline void irq_domain_debugfs_init(struct dentry *root);
+static inline void irq_domain_debugfs_init(struct dentry *root)
+{
+}
 # endif
 #else /* CONFIG_GENERIC_IRQ_DEBUGFS */
 static inline void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *d)