Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756062AbcC2NEG (ORCPT ); Tue, 29 Mar 2016 09:04:06 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:36252 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752866AbcC2NED (ORCPT ); Tue, 29 Mar 2016 09:04:03 -0400 MIME-Version: 1.0 In-Reply-To: <1458224359-32665-14-git-send-email-jonathanh@nvidia.com> References: <1458224359-32665-1-git-send-email-jonathanh@nvidia.com> <1458224359-32665-14-git-send-email-jonathanh@nvidia.com> Date: Tue, 29 Mar 2016 15:04:01 +0200 X-Google-Sender-Auth: UcjLtsziWVBvrPD6LwGAU2xTXRg Message-ID: Subject: Re: [PATCH 13/15] irqchip/gic: Prepare for adding platform driver From: Geert Uytterhoeven To: Jon Hunter Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , =?UTF-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Stephen Warren , Thierry Reding , Kevin Hilman , Grygorii Strashko , Lars-Peter Clausen , Linus Walleij , linux-tegra@vger.kernel.org, "linux-omap@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1245 Lines: 44 Hi Jon, On Thu, Mar 17, 2016 at 3:19 PM, Jon Hunter wrote: > --- a/drivers/irqchip/irq-gic.c > +++ b/drivers/irqchip/irq-gic.c > -#ifdef CONFIG_SMP > - set_smp_cross_call(gic_raise_softirq); > - register_cpu_notifier(&gic_cpu_notifier); > -#endif > + if (gic_nr == 0) { > + if (IS_ENABLED(CONFIG_SMP)) { > + set_smp_cross_call(gic_raise_softirq); If CONFIG_SMP=n: drivers/irqchip/irq-gic.c: In function '__gic_init_bases': drivers/irqchip/irq-gic.c:1165:4: error: implicit declaration of function 'set_smp_cross_call' [-Werror=implicit-function-declaration] set_smp_cross_call(gic_raise_softirq); ^ There's no dummy for the CONFIG_SMP=n case, so you either have to keep the #ifdef, or add a dummy. > + register_cpu_notifier(&gic_cpu_notifier); > + } -- 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