Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756977AbcC2N7e (ORCPT ); Tue, 29 Mar 2016 09:59:34 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:5095 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756853AbcC2N7c (ORCPT ); Tue, 29 Mar 2016 09:59:32 -0400 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Tue, 29 Mar 2016 06:58:15 -0700 Subject: Re: [PATCH 13/15] irqchip/gic: Prepare for adding platform driver To: Geert Uytterhoeven References: <1458224359-32665-1-git-send-email-jonathanh@nvidia.com> <1458224359-32665-14-git-send-email-jonathanh@nvidia.com> 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-omap@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" From: Jon Hunter Message-ID: <56FA8A39.1000609@nvidia.com> Date: Tue, 29 Mar 2016 14:59:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.21.132.115] X-ClientProxiedBy: UKMAIL101.nvidia.com (10.26.138.13) To UKMAIL101.nvidia.com (10.26.138.13) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1065 Lines: 37 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