From patchwork Wed Mar 4 11:56:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 446207 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A1D04140140 for ; Wed, 4 Mar 2015 23:09:25 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 7DBEE1A04C1 for ; Wed, 4 Mar 2015 23:09:25 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org X-Greylist: delayed 720 seconds by postgrey-1.35 at bilbo; Wed, 04 Mar 2015 23:08:27 AEDT Received: from wilson.telenet-ops.be (wilson.telenet-ops.be [195.130.132.42]) by lists.ozlabs.org (Postfix) with ESMTP id A00F11A01BA for ; Wed, 4 Mar 2015 23:08:27 +1100 (AEDT) Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [195.130.132.52]) by wilson.telenet-ops.be (Postfix) with ESMTP id E7E3E35A11 for ; Wed, 4 Mar 2015 12:56:23 +0100 (CET) Received: from ayla.of.borg ([84.193.93.87]) by xavier.telenet-ops.be with bizsmtp id zPwM1p00B1t5w8s01PwMJH; Wed, 04 Mar 2015 12:56:21 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1YT7uX-0005NP-3y; Wed, 04 Mar 2015 12:56:21 +0100 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1YT7uZ-0001Db-OV; Wed, 04 Mar 2015 12:56:23 +0100 From: Geert Uytterhoeven To: "Rafael J. Wysocki" , Viresh Kumar Subject: [PATCH v2] cpufreq: ppc: Add missing #include Date: Wed, 4 Mar 2015 12:56:20 +0100 Message-Id: <1425470180-4650-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , linux-pm@vger.kernel.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 --- 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