irqdesc: Fix missing irq_to_desc export for !CONFIG_SPARSE_IRQ
Subsystems (3)
PATCH 1/1 irqdesc: Fix missing irq_to_desc export for !CONFIG_SPARSE_IRQ
In allmodconfig builds for sparc and any other arch which does not set CONFIG_SPARSE_IRQ, the following will be seen at modpost:
CC [M] lib/cpu-notifier-error-inject.o
CC [M] lib/pm-notifier-error-inject.o
ERROR: "irq_to_desc" [drivers/gpio/gpio-mcp23s08.ko] undefined! make[2]: *** [__modpost] Error 1
This happens because commit 3911ff30f5d1175e2e67e73244405e3492b35c79 ("genirq: export handle_edge_irq() and irq_to_desc()") added one export for it, but there were actually two instances of it, in an if/else clause for CONFIG_SPARSE_IRQ. Add the second one.
kernel/irq/irqdesc.c +1 -0
@@ -274,6 +274,7 @@ struct irq_desc *irq_to_desc(unsigned int irq) {return (irq <NR_IRQS ) ? irq_desc + irq :NULL ; } +EXPORT_SYMBOL (irq_to_desc);static void free_desc (unsigned int irq) {
Signature · 1 line
1.8.5.2
tip-bot for Paul Gortmaker
merge bot[tip:irq/urgent] genirq: Add missing irq_to_desc export for CONFIG_SPARSE_IRQ=n
genirq: Add missing irq_to_desc export for CONFIG_SPARSE_IRQ=n
Commit-ID: 2c45aada341121438affc4cb8d5b4cfaa2813d3d Gitweb: http://git.kernel.org/tip/2c45aada341121438affc4cb8d5b4cfaa2813d3d Author: Paul Gortmaker <[email protected]> AuthorDate: Mon, 10 Feb 2014 13:39:53 -0500 Committer: Thomas Gleixner <[email protected]> CommitDate: Tue, 11 Feb 2014 10:30:36 +0100
genirq: Add missing irq_to_desc export for CONFIG_SPARSE_IRQ=n
In allmodconfig builds for sparc and any other arch which does not set CONFIG_SPARSE_IRQ, the following will be seen at modpost:
CC [M] lib/cpu-notifier-error-inject.o
CC [M] lib/pm-notifier-error-inject.o
ERROR: "irq_to_desc" [drivers/gpio/gpio-mcp23s08.ko] undefined! make[2]: *** [__modpost] Error 1
This happens because commit 3911ff30f5 ("genirq: export handle_edge_irq() and irq_to_desc()") added one export for it, but there were actually two instances of it, in an if/else clause for CONFIG_SPARSE_IRQ. Add the second one.
--- kernel/irq/irqdesc.c | 1 + 1 file changed, 1 insertion(+)
kernel/irq/irqdesc.c +1 -0
@@ -274,6 +274,7 @@ struct irq_desc *irq_to_desc(unsigned int irq) {return (irq <NR_IRQS ) ? irq_desc + irq :NULL ; } +EXPORT_SYMBOL (irq_to_desc);static void free_desc (unsigned int irq) {