Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1680798 > unrolled thread

[PATCH] genirq/debugfs: fix build for !CONFIG_IRQ_DOMAIN

Started bySebastian Ott <sebott@linux.vnet.ibm.com>
First post2017-07-04 11:30 +0200
Last post2017-07-04 12:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] genirq/debugfs: fix build for !CONFIG_IRQ_DOMAIN Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-07-04 11:30 +0200
    [tip:irq/urgent] genirq/debugfs: Fix build for !CONFIG_IRQ_DOMAIN tip-bot for Sebastian Ott <tipbot@zytor.com> - 2017-07-04 12:50 +0200

#1680798 — [PATCH] genirq/debugfs: fix build for !CONFIG_IRQ_DOMAIN

FromSebastian Ott <sebott@linux.vnet.ibm.com>
Date2017-07-04 11:30 +0200
Subject[PATCH] genirq/debugfs: fix build for !CONFIG_IRQ_DOMAIN
Message-ID<tZsjD-6nX-15@gated-at.bofh.it>
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>
---
 kernel/irq/internals.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h
index 9da14d1..dbfba99 100644
--- a/kernel/irq/internals.h
+++ b/kernel/irq/internals.h
@@ -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)
-- 
2.7.4

[toc] | [next] | [standalone]


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

Fromtip-bot for Sebastian Ott <tipbot@zytor.com>
Date2017-07-04 12:50 +0200
Subject[tip:irq/urgent] genirq/debugfs: Fix build for !CONFIG_IRQ_DOMAIN
Message-ID<tZtz3-76W-5@gated-at.bofh.it>
In reply to#1680798
Commit-ID:  e5682b4eecb2b73282853d0ef314d3164b986997
Gitweb:     http://git.kernel.org/tip/e5682b4eecb2b73282853d0ef314d3164b986997
Author:     Sebastian Ott <sebott@linux.vnet.ibm.com>
AuthorDate: Tue, 4 Jul 2017 11:25:15 +0200
Committer:  Thomas Gleixner <tglx@linutronix.de>
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);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

---
 kernel/irq/internals.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h
index 9da14d1..dbfba99 100644
--- a/kernel/irq/internals.h
+++ b/kernel/irq/internals.h
@@ -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)

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web