Skip to content

Commit 2c45aad

Browse files
Paul GortmakerKAGA-KOKO
authored andcommitted
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 3911ff3 ("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. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Jiri Kosina <jkosina@suse.cz> Cc: stable@vger.kernel.org # 3.4+ Link: http://lkml.kernel.org/r/1392057610-11514-1-git-send-email-paul.gortmaker@windriver.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 4944790 commit 2c45aad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/irq/irqdesc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ struct irq_desc *irq_to_desc(unsigned int irq)
274274
{
275275
return (irq < NR_IRQS) ? irq_desc + irq : NULL;
276276
}
277+
EXPORT_SYMBOL(irq_to_desc);
277278

278279
static void free_desc(unsigned int irq)
279280
{

0 commit comments

Comments
 (0)