Skip to content

Commit 3e48fa2

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
xen/events: 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 d0c62d5 commit 3e48fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/xen/events/events_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ static evtchn_port_t evtchn_from_irq(unsigned int irq)
411411
{
412412
const struct irq_info *info = NULL;
413413

414-
if (likely(irq < nr_irqs))
414+
if (likely(irq < irq_get_nr_irqs()))
415415
info = info_for_irq(irq);
416416
if (!info)
417417
return 0;

0 commit comments

Comments
 (0)