From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756655AbbCDN7X (ORCPT ); Wed, 4 Mar 2015 08:59:23 -0500 Received: from v094114.home.net.pl ([79.96.170.134]:59069 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753254AbbCDN7W (ORCPT ); Wed, 4 Mar 2015 08:59:22 -0500 From: "Rafael J. Wysocki" To: Geert Uytterhoeven Cc: Viresh Kumar , linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] cpufreq: ppc: Add missing #include Date: Wed, 04 Mar 2015 15:22:57 +0100 Message-ID: <6947572.xHtck0sm5U@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/3.19.0+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1425470180-4650-1-git-send-email-geert+renesas@glider.be> References: <1425470180-4650-1-git-send-email-geert+renesas@glider.be> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, March 04, 2015 12:56:20 PM Geert Uytterhoeven wrote: > If CONFIG_SMP=n, does not include , causing: > > drivers/cpufreq/ppc-corenet-cpufreq.c: In function 'corenet_cpufreq_cpu_init': > drivers/cpufreq/ppc-corenet-cpufreq.c:173:3: error: implicit declaration of function 'get_hard_smp_processor_id' [-Werror=implicit-function-declaration] > > Signed-off-by: Geert Uytterhoeven > --- > Seen with e.g. corenet64_smp_defconfig + CONFIG_CPU_FREQ=y, > CONFIG_PPC_CORENET_CPUFREQ=y, CONFIG_SMP=n > > v2: > - Add comment for #include directive, as requested by Viresh Applied, thanks! > --- > drivers/cpufreq/ppc-corenet-cpufreq.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/cpufreq/ppc-corenet-cpufreq.c b/drivers/cpufreq/ppc-corenet-cpufreq.c > index bee5df7794d33d10..7cb4b766cf948d3f 100644 > --- a/drivers/cpufreq/ppc-corenet-cpufreq.c > +++ b/drivers/cpufreq/ppc-corenet-cpufreq.c > @@ -22,6 +22,8 @@ > #include > #include > > +#include /* for get_hard_smp_processor_id() in UP configs */ > + > /** > * struct cpu_data - per CPU data struct > * @parent: the parent node of cpu clock > -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.