Skip to content

Commit 3911ff3

Browse files
Jiri Kosinatorvalds
authored andcommitted
genirq: export handle_edge_irq() and irq_to_desc()
Export handle_edge_irq() and irq_to_desc() to modules to allow them to do things such as __irq_set_handler_locked(...., handle_edge_irq); This fixes ERROR: "handle_edge_irq" [drivers/gpio/gpio-pch.ko] undefined! ERROR: "irq_to_desc" [drivers/gpio/gpio-pch.ko] undefined! when gpio-pch is being built as a module. This was introduced by commit df9541a ("gpio: pch9: Use proper flow type handlers") that added __irq_set_handler_locked(d->irq, handle_edge_irq); but handle_edge_irq() was not exported for modules (and inlined __irq_set_handler_locked() requires irq_to_desc() exported as well) Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b6255ee commit 3911ff3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

kernel/irq/chip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ handle_edge_irq(unsigned int irq, struct irq_desc *desc)
518518
out_unlock:
519519
raw_spin_unlock(&desc->lock);
520520
}
521+
EXPORT_SYMBOL(handle_edge_irq);
521522

522523
#ifdef CONFIG_IRQ_EDGE_EOI_HANDLER
523524
/**

kernel/irq/irqdesc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ struct irq_desc *irq_to_desc(unsigned int irq)
112112
{
113113
return radix_tree_lookup(&irq_desc_tree, irq);
114114
}
115+
EXPORT_SYMBOL(irq_to_desc);
115116

116117
static void delete_irq_desc(unsigned int irq)
117118
{

0 commit comments

Comments
 (0)