From: Bart Van Assche Date: Tue, 15 Oct 2024 19:09:42 +0000 (-0700) Subject: scsi: aha152x: Switch to irq_get_nr_irqs() X-Git-Tag: v6.13-rc1~173^2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03f039def8332fef5efd93795291ad13cb187d65;p=thirdparty%2Fkernel%2Flinux.git scsi: aha152x: 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-12-bvanassche@acm.org --- diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index a0fb330b8df54..4276f868cd915 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c @@ -295,7 +295,7 @@ CMD_INC_RESID(struct scsi_cmnd *cmd, int inc) #else #define IRQ_MIN 9 #if defined(__PPC) -#define IRQ_MAX (nr_irqs-1) +#define IRQ_MAX (irq_get_nr_irqs()-1) #else #define IRQ_MAX 12 #endif