From: Bart Van Assche Date: Tue, 15 Oct 2024 19:09:36 +0000 (-0700) Subject: s390/irq: Switch to irq_get_nr_irqs() X-Git-Tag: v6.13-rc1~173^2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=951248383a9029f236e80c3e408012f6e280fb2f;p=thirdparty%2Fkernel%2Flinux.git s390/irq: Switch to irq_get_nr_irqs() 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. Signed-off-by: Bart Van Assche Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/20241015190953.1266194-6-bvanassche@acm.org --- diff --git a/arch/s390/kernel/irq.c b/arch/s390/kernel/irq.c index 2639a3d12736a..a2c867181b5af 100644 --- a/arch/s390/kernel/irq.c +++ b/arch/s390/kernel/irq.c @@ -253,7 +253,7 @@ int show_interrupts(struct seq_file *p, void *v) seq_putc(p, '\n'); goto out; } - if (index < nr_irqs) { + if (index < irq_get_nr_irqs()) { show_msi_interrupt(p, index); goto out; }