From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Hunter Subject: Re: [PATCH 13/15] irqchip/gic: Prepare for adding platform driver Date: Tue, 29 Mar 2016 14:59:21 +0100 Message-ID: <56FA8A39.1000609@nvidia.com> References: <1458224359-32665-1-git-send-email-jonathanh@nvidia.com> <1458224359-32665-14-git-send-email-jonathanh@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Geert Uytterhoeven 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: devicetree@vger.kernel.org Hi Geert, On 29/03/16 14:04, Geert Uytterhoeven wrote: > 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); >> + } Thanks. I have already fixed this in my tree locally. Cheers Jon -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html