Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1404196

Re: [PATCH] irqchip: nps: add 64BIT dependency

From Geert Uytterhoeven <geert@linux-m68k.org>
Newsgroups linux.kernel
Subject Re: [PATCH] irqchip: nps: add 64BIT dependency
Date 2016-05-20 09:40 +0200
Message-ID <rANcm-2D2-15@gated-at.bofh.it> (permalink)
References <ry61Q-5yq-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Arnd,

On Thu, May 12, 2016 at 11:03 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> 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.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/irqchip/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> index 83775f148158..37289cf6b449 100644
> --- a/drivers/irqchip/Kconfig
> +++ b/drivers/irqchip/Kconfig
> @@ -253,6 +253,7 @@ config MVEBU_ODMI
>
>  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

As ARC_PLAT_EZNPS already selects EZNPS_GIC, I'd like to suggest
the slight simpler (whitespace-damaged):

--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -255,7 +255,8 @@ config PARTITION_PERCPU
        bool

 config EZNPS_GIC
-       bool "NPS400 Global Interrupt Manager (GIM)"
+       bool "NPS400 Global Interrupt Manager (GIM)" if COMPILE_TEST
+       depends on !64BIT
        select IRQ_DOMAIN
        help
          Support the EZchip NPS400 global interrupt controller

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] irqchip: nps: add 64BIT dependency Arnd Bergmann <arnd@arndb.de> - 2016-05-12 23:10 +0200
  Re: [PATCH] irqchip: nps: add 64BIT dependency Marc Zyngier <marc.zyngier@arm.com> - 2016-05-13 10:30 +0200
    Re: [PATCH] irqchip: nps: add 64BIT dependency Marc Zyngier <marc.zyngier@arm.com> - 2016-05-13 10:40 +0200
    Re: [PATCH] irqchip: nps: add 64BIT dependency Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-05-13 10:40 +0200
      Re: [PATCH] irqchip: nps: add 64BIT dependency Arnd Bergmann <arnd@arndb.de> - 2016-05-13 12:00 +0200
        Re: [PATCH] irqchip: nps: add 64BIT dependency Marc Zyngier <marc.zyngier@arm.com> - 2016-05-13 12:30 +0200
          Re: [PATCH] irqchip: nps: add 64BIT dependency Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-05-13 12:40 +0200
            Re: [PATCH] irqchip: nps: add 64BIT dependency Thomas Gleixner <tglx@linutronix.de> - 2016-05-17 21:50 +0200
  Re: [PATCH] irqchip: nps: add 64BIT dependency Geert Uytterhoeven <geert@linux-m68k.org> - 2016-05-20 09:40 +0200
    Re: [PATCH] irqchip: nps: add 64BIT dependency Geert Uytterhoeven <geert@linux-m68k.org> - 2016-05-20 10:30 +0200
    Re: [PATCH] irqchip: nps: add 64BIT dependency Vineet Gupta <vgupta@synopsys.com> - 2016-05-20 10:30 +0200

csiph-web