Re: [PATCH v2 7/7] s390/pci: Drop the unused index argument of zpci_msi_clear_airq()
From: Niklas Schnelle
Date: Tue Oct 06 2026 - 11:29:36 EST
On Mon, 2026-10-05 at 14:03 +0200, Tobias Schumacher wrote:
> zpci_msi_domain_free() passes its loop index to zpci_msi_clear_airq(),
> which adds it to an offset that already accounts for it.
> zpci_msi_domain_alloc() stores hwirq + i for each vector, so
> zpci_decode_hwirq_msi_index() hands back msi_index + i and bit is
> already zdev->msi_first_bit + msi_index + i.
>
> The doubled index never selected a wrong entry. An irq domain's free()
> callback is only ever invoked from irq_domain_free_irqs_hierarchy(),
> which walks the range itself and passes a count of one. So, the loop in
> zpci_msi_domain_free() runs once with an index of zero.
>
> Drop the parameter and the addition.
>
> No functional change.
>
> Signed-off-by: Tobias Schumacher <ts@xxxxxxxxxxxxx>
> ---
Good catch and a gppd explanation. Great work.
Reviewed-by: Niklas Schnelle <schnelle@xxxxxxxxxxxxx>
Thanks,
Niklas