[PATCH v1 6/6] PCI: brcmstb: Cast an int variable to an irq_hw_number_t
Jim Quinlan
james.quinlan at broadcom.com
Fri Feb 14 08:17:02 PST 2025
On Thu, Feb 6, 2025 at 5:20 PM Stefan Wahren <wahrenst at gmx.net> wrote:
>
> Hi Jim,
>
> Am 05.02.25 um 20:12 schrieb Jim Quinlan:
> > Just make it clear to the reader that there is a conversion happening,
> > in this case from an int type to an irq_hw_number_t, an unsigned long int.
> I'm not a fan of this generic subject. A possible suggestion might be:
>
> PCI: brcmstb: Clarify conversion by irq_domain_set_info
ack
>
> Regards
> >
> > Signed-off-by: Jim Quinlan <james.quinlan at broadcom.com>
> > ---
> > drivers/pci/controller/pcie-brcmstb.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c
> > index da7b10036948..1e24e7fc895c 100644
> > --- a/drivers/pci/controller/pcie-brcmstb.c
> > +++ b/drivers/pci/controller/pcie-brcmstb.c
> > @@ -560,7 +560,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;
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4210 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250214/52a9e10c/attachment.p7s>
More information about the linux-arm-kernel
mailing list