Skip to content

Commit 9512483

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 29f42eb commit 9512483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ int show_interrupts(struct seq_file *p, void *v)
253253
seq_putc(p, '\n');
254254
goto out;
255255
}
256-
if (index < nr_irqs) {
256+
if (index < irq_get_nr_irqs()) {
257257
show_msi_interrupt(p, index);
258258
goto out;
259259
}

0 commit comments

Comments
 (0)