[PATCH stable-5.15 1/2] irqdomain: Refactor __irq_domain_alloc_irqs()