[PATCH v3 04/22] powerpc/cell: Switch to irq_get_nr_irqs()
Michael Ellerman
mpe at ellerman.id.au
Wed Oct 16 10:36:14 AEDT 2024
Bart Van Assche <bvanassche at acm.org> writes:
> Use the irq_get_nr_irqs() function instead of the global variable
> 'nr_irqs'. Prepare for changing 'nr_irqs' from an exported global
> variable into a variable with file scope.
>
> Cc: linuxppc-dev at lists.ozlabs.org
> Signed-off-by: Bart Van Assche <bvanassche at acm.org>
> ---
> arch/powerpc/platforms/cell/axon_msi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Michael Ellerman <mpe at ellerman.id.au> (powerpc)
cheers
> diff --git a/arch/powerpc/platforms/cell/axon_msi.c b/arch/powerpc/platforms/cell/axon_msi.c
> index 28dc86744cac..d243f7fd8982 100644
> --- a/arch/powerpc/platforms/cell/axon_msi.c
> +++ b/arch/powerpc/platforms/cell/axon_msi.c
> @@ -112,7 +112,7 @@ static void axon_msi_cascade(struct irq_desc *desc)
> pr_devel("axon_msi: woff %x roff %x msi %x\n",
> write_offset, msic->read_offset, msi);
>
> - if (msi < nr_irqs && irq_get_chip_data(msi) == msic) {
> + if (msi < irq_get_nr_irqs() && irq_get_chip_data(msi) == msic) {
> generic_handle_irq(msi);
> msic->fifo_virt[idx] = cpu_to_le32(0xffffffff);
> } else {
More information about the Linuxppc-dev
mailing list