Skip to content

Commit c466595

Browse files
author
Marc Zyngier
committed
irqdomain: Make irq_domain_alloc_irqs_recursive available
We are soon going to need the MSI layer to call into the domain allocators. Instead of open coding this, make the standard irq_domain_alloc_irqs_recursive function available to the MSI layer. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 72f57f2 commit c466595

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎include/linux/irqdomain.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ static inline int irq_domain_alloc_irqs(struct irq_domain *domain,
367367
return __irq_domain_alloc_irqs(domain, -1, nr_irqs, node, arg, false);
368368
}
369369

370+
extern int irq_domain_alloc_irqs_recursive(struct irq_domain *domain,
371+
unsigned int irq_base,
372+
unsigned int nr_irqs, void *arg);
370373
extern int irq_domain_set_hwirq_and_chip(struct irq_domain *domain,
371374
unsigned int virq,
372375
irq_hw_number_t hwirq,

‎kernel/irq/irqdomain.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,9 +1125,9 @@ static void irq_domain_free_irqs_recursive(struct irq_domain *domain,
11251125
}
11261126
}
11271127

1128-
static int irq_domain_alloc_irqs_recursive(struct irq_domain *domain,
1129-
unsigned int irq_base,
1130-
unsigned int nr_irqs, void *arg)
1128+
int irq_domain_alloc_irqs_recursive(struct irq_domain *domain,
1129+
unsigned int irq_base,
1130+
unsigned int nr_irqs, void *arg)
11311131
{
11321132
int ret = 0;
11331133
struct irq_domain *parent = domain->parent;

0 commit comments

Comments
 (0)