Skip to content

Commit e5682b4

Browse files
Sebastian OttKAGA-KOKO
authored andcommitted
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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/alpine.LFD.2.20.1707041124000.1712@schleppi
1 parent 4422d80 commit e5682b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/irq/internals.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,9 @@ static inline void irq_remove_debugfs_entry(struct irq_desc *desc)
437437
# ifdef CONFIG_IRQ_DOMAIN
438438
void irq_domain_debugfs_init(struct dentry *root);
439439
# else
440-
static inline void irq_domain_debugfs_init(struct dentry *root);
440+
static inline void irq_domain_debugfs_init(struct dentry *root)
441+
{
442+
}
441443
# endif
442444
#else /* CONFIG_GENERIC_IRQ_DEBUGFS */
443445
static inline void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *d)

0 commit comments

Comments
 (0)