* [PATCH v3 04/22] powerpc/cell: Switch to irq_get_nr_irqs() [not found] <20241015190953.1266194-1-bvanassche@acm.org> @ 2024-10-15 19:09 ` Bart Van Assche 2024-10-15 23:36 ` Michael Ellerman 0 siblings, 1 reply; 2+ messages in thread From: Bart Van Assche @ 2024-10-15 19:09 UTC (permalink / raw) To: Thomas Gleixner Cc: Greg Kroah-Hartman, Russell King, linux-kernel, Bart Van Assche, linuxppc-dev 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@lists.ozlabs.org Signed-off-by: Bart Van Assche <bvanassche@acm.org> --- arch/powerpc/platforms/cell/axon_msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3 04/22] powerpc/cell: Switch to irq_get_nr_irqs() 2024-10-15 19:09 ` [PATCH v3 04/22] powerpc/cell: Switch to irq_get_nr_irqs() Bart Van Assche @ 2024-10-15 23:36 ` Michael Ellerman 0 siblings, 0 replies; 2+ messages in thread From: Michael Ellerman @ 2024-10-15 23:36 UTC (permalink / raw) To: Bart Van Assche, Thomas Gleixner Cc: Greg Kroah-Hartman, Russell King, linux-kernel, Bart Van Assche, linuxppc-dev Bart Van Assche <bvanassche@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@lists.ozlabs.org > Signed-off-by: Bart Van Assche <bvanassche@acm.org> > --- > arch/powerpc/platforms/cell/axon_msi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Michael Ellerman <mpe@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 { ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-15 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20241015190953.1266194-1-bvanassche@acm.org>
2024-10-15 19:09 ` [PATCH v3 04/22] powerpc/cell: Switch to irq_get_nr_irqs() Bart Van Assche
2024-10-15 23:36 ` Michael Ellerman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).