History

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.

Paul Gortmaker committed 12 years ago

Commit 2c45aad1 parent 49447901 file · +1 −0Browse files

Unified · Split

kernel/irq/irqdesc.c+1−0
@@ -274,6 +274,7 @@ struct irq_desc *irq_to_desc(unsigned int irq) · 273 unmodified lines
274{274{
275 return (irq < NR_IRQS) ? irq_desc + irq : NULL;275 return (irq < NR_IRQS) ? irq_desc + irq : NULL;
276}276}
277EXPORT_SYMBOL(irq_to_desc);
277 278
278static void free_desc(unsigned int irq)279static void free_desc(unsigned int irq)
279{280{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t