]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: lpc32xx: fix NR_IRQS confict
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 May 2016 08:31:31 +0000 (10:31 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 24 May 2016 19:32:46 +0000 (19:32 +0000)
commitddc12522cba9b35d383475231c7f635fa431c4f7
tree430f9d9c3e5627b564c4b02f2771c2caf83e4e37
parentefbbe07e4a7e5d2f4f566209b30664275880c34f
ARM: lpc32xx: fix NR_IRQS confict

With the change to sparse IRQs, the lpc32xx platform gets a warning about
conflicting macros:

In file included from arch/arm/mach-lpc32xx/irq.c:31:0:
arch/arm/mach-lpc32xx/include/mach/irqs.h:115:0: warning: "NR_IRQS" redefined
 #define NR_IRQS    96
arch/arm/include/asm/irq.h:9:0: note: this is the location of the previous definition
 #define NR_IRQS NR_IRQS_LEGACY

One such instance was in the old irq driver that is now removed by
the previous patch, but any other file including mach/irqs.h still
has the issue. Since none of them use this constant, we can just
remove the old definition.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 118227c9fefa ("irqchip: Add LPC32xx interrupt controller driver")
arch/arm/mach-lpc32xx/include/mach/irqs.h