ARM: vGIC: fix nr_irq definition
authorAndre Przywara <andre.przywara@arm.com>
Thu, 19 Oct 2017 12:48:37 +0000 (13:48 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 8 Dec 2017 21:14:47 +0000 (13:14 -0800)
commitb819187a15ecea7fe00cffded1bf454b8a6d7dd2
tree03cb0e28f244b13f190cbb6e2c6007490e3386f4
parent2e9b1c655f060b5c4e68bc8499f02253babe1bbc
ARM: vGIC: fix nr_irq definition

The global variable "nr_irqs" is used for x86 and some common Xen code.
To make the latter work easily for ARM, it was #defined to NR_IRQS.
This not only violated the common habit of capitalizing macros, but
also caused issues if one wanted to use a rather innocent "nr_irqs" as
a local variable name or as a function parameter.
Drop the optimization and make nr_irqs a normal variable for ARM also.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
xen/arch/arm/irq.c
xen/include/asm-arm/irq.h