irqdomain: Export __irq_domain_alloc_irqs() to modules
Subsystems (3)
PATCH 1/1 irqdomain: Export __irq_domain_alloc_irqs() to modules
The Apple PCIe controller driver allocates interrupts generated by the PCIe ports, and uses irq_domain_alloc_irqs() for that. THis is an inline function that uses __irq_domain_alloc_irqs() as a backend.
Since the driver can be built as a module, __irq_domain_alloc_irqs() must be exported.
---
Notes:
Since the offending code is only in the PCI tree so far, it would make sense if Lorenzo could take this patch directly.
kernel/irq/irqdomain.c | 1 + 1 file changed, 1 insertion(+)
kernel/irq/irqdomain.c +1 -0
@@ -1502,6 +1502,7 @@ int __irq_domain_alloc_irqs(struct irq_domain *domain, int irq_base,irq_free_descs (virq, nr_irqs);return ret; } +EXPORT_SYMBOL_GPL (__irq_domain_alloc_irqs);/* The irq_data was moved, fix the revmap to refer to the new location */ static void irq_domain_fix_revmap (struct irq_data *d)
Signature · 1 line
2.30.2
Quoted 9 lines · Marc Zyngier
The Apple PCIe controller driver allocates interrupts generated by the PCIe ports, and uses
irq_domain_alloc_irqs()for that. THis is an inline function that uses__irq_domain_alloc_irqs()as a backend.Since the driver can be built as a module,
__irq_domain_alloc_irqs()must be exported.Fixes 201adeaa9d82 ("PCI: apple: Add INTx and per-port interrupt support")
I have squashed this patch into the commit it is fixing and pushed pci/apple out.
I could have merged it as a standalone patch before the commit it is fixing but it would not make sense on its own I believe, happy to rectify the branch in case that's preferred.
Lorenzo
Quoted 25 lines
Signed-off-by Marc Zyngier <[email protected]>---
Notes:
Since the offending code is only in the PCI tree so far, it would make sense if Lorenzo could take this patch directly.kernel/irq/irqdomain.c | 1 + 1 file changed, 1 insertion(+)kernel/irq/irqdomain.c +1
-0@@ -1502,6 +1502,7 @@ int __irq_domain_alloc_irqs(struct irq_domain *domain, int irq_base,irq_free_descs (virq, nr_irqs);return ret; } +EXPORT_SYMBOL_GPL (__irq_domain_alloc_irqs);/* The irq_data was moved, fix the revmap to refer to the new location */ static void irq_domain_fix_revmap (struct irq_data *d)Signature · 1 line
2.30.2
Quoted 10 lines · Lorenzo Pieralisi
Quoted 8 lines · Marc Zyngier
The Apple PCIe controller driver allocates interrupts generated by the PCIe ports, and uses
irq_domain_alloc_irqs()for that. THis is an inline function that uses__irq_domain_alloc_irqs()as a backend.Since the driver can be built as a module,
__irq_domain_alloc_irqs()must be exported.
Quoted 8 lines
Quoted 1 line
Fixes 201adeaa9d82 ("PCI: apple: Add INTx and per-port interrupt support")I have squashed this patch into the commit it is fixing and pushed pci/apple out.
I could have merged it as a standalone patch before the commit it is fixing but it would not make sense on its own I believe, happy to rectify the branch in case that's preferred.
The final patch has links to both patches on the list, so that's absolutely fine by me.
Thanks,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.