]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI: brcmstb: Make irq_domain_set_info() parameter cast explicit
authorJim Quinlan <james.quinlan@broadcom.com>
Fri, 14 Feb 2025 17:39:36 +0000 (12:39 -0500)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Tue, 4 Mar 2025 16:03:10 +0000 (16:03 +0000)
Make the cast to the irq_hw_number_t type for the parameter passed to
irq_domain_set_info() function explicit.

Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20250214173944.47506-9-james.quinlan@broadcom.com
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/controller/pcie-brcmstb.c

index ab25f674800d3c0e51b4217679be9b4719f18e39..df944453c53a2f53242561a1adee3031b11b2c33 100644 (file)
@@ -559,7 +559,7 @@ static int brcm_irq_domain_alloc(struct irq_domain *domain, unsigned int virq,
                return hwirq;
 
        for (i = 0; i < nr_irqs; i++)
-               irq_domain_set_info(domain, virq + i, hwirq + i,
+               irq_domain_set_info(domain, virq + i, (irq_hw_number_t)hwirq + i,
                                    &brcm_msi_bottom_irq_chip, domain->host_data,
                                    handle_edge_irq, NULL, NULL);
        return 0;