irqchip: nps: add 64BIT dependency
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 May 2016 21:03:35 +0000 (23:03 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2016 17:20:47 +0000 (10:20 -0700)
The newly added nps irqchip driver causes build warnings on ARM64.

  include/soc/nps/common.h: In function 'nps_host_reg_non_cl':
  include/soc/nps/common.h:148:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

As the driver is only used on ARC, we don't need to see it without
COMPILE_TEST elsewhere, and we can avoid the warnings by only building
on 32-bit architectures even with CONFIG_COMPILE_TEST.

Acked-by: Marc Zyngier <narc.zyngier@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/irqchip/Kconfig

index 46f10ec17d5cfba7427ea8784fd736ff396b0071..fa33c50b0e5a00cef1e560b0aa105034dd30e816 100644 (file)
@@ -256,6 +256,7 @@ config PARTITION_PERCPU
 
 config EZNPS_GIC
        bool "NPS400 Global Interrupt Manager (GIM)"
+       depends on ARC || (COMPILE_TEST && !64BIT)
        select IRQ_DOMAIN
        help
          Support the EZchip NPS400 global interrupt controller