From patchwork Tue Sep 15 08:10:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 53617 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 7F0BF22A22 for ; Tue, 15 Sep 2015 08:10:37 +0000 (UTC) Received: by lagj9 with SMTP id j9sf60532807lag.0 for ; Tue, 15 Sep 2015 01:10:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=MpSZetiMl7iOC+2GfOyYY9bDNDd6VQX75KPzRjS1Dco=; b=U1KRDm6OwtQ85x5szeK3KbFCjXvQS7m1cIply+8aXi2vkt+seIYc58j+j0axxh+xKP OHpgzTa1zuDYb30Pfk95BSrxw8kNMq2Jr4PnNP6Xmuz4colUH+MDlusWbyy5giRh7yKD N59CAf+9PNRCVCswOW3iOU2IXP57vV4g0/yEZXZJN1A9Eafwj7INYp5W6ncUuJ3i5BOR zWQ9wbq2hcRi7vPe2qA3V5P/OQmNKyWt7HT75p8LciqsI4qqVgFrtSw20MFfGSNW85fG LBkyAViYDPbPZa2k7zc+4F+Eh5h7FhDcju83D/F7nZcREG6FuBiRfyK1b1r9E3ygIRPl mUaw== X-Gm-Message-State: ALoCoQknD4womb6KRGW67ChC3XZXY2hcCPdy3HW8jhAucf1pp8oQthU9gFbwPin6VYKgMmzOL7Di X-Received: by 10.112.48.41 with SMTP id i9mr3970217lbn.23.1442304636288; Tue, 15 Sep 2015 01:10:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.202 with SMTP id g10ls533396laf.29.gmail; Tue, 15 Sep 2015 01:10:36 -0700 (PDT) X-Received: by 10.152.204.39 with SMTP id kv7mr19371707lac.31.1442304636140; Tue, 15 Sep 2015 01:10:36 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id r8si12476636lbh.7.2015.09.15.01.10.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 01:10:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbcao8 with SMTP id ao8so80224036lbc.3 for ; Tue, 15 Sep 2015 01:10:35 -0700 (PDT) X-Received: by 10.112.156.167 with SMTP id wf7mr19082302lbb.88.1442304635698; Tue, 15 Sep 2015 01:10:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1636347lbq; Tue, 15 Sep 2015 01:10:34 -0700 (PDT) X-Received: by 10.50.62.46 with SMTP id v14mr3364331igr.79.1442304634827; Tue, 15 Sep 2015 01:10:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9si11012905igj.38.2015.09.15.01.10.34; Tue, 15 Sep 2015 01:10:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752347AbbIOIKc (ORCPT + 12 others); Tue, 15 Sep 2015 04:10:32 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35657 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751961AbbIOIKa (ORCPT ); Tue, 15 Sep 2015 04:10:30 -0400 Received: by pacfv12 with SMTP id fv12so173136878pac.2 for ; Tue, 15 Sep 2015 01:10:30 -0700 (PDT) X-Received: by 10.67.24.71 with SMTP id ig7mr6425545pad.156.1442304629837; Tue, 15 Sep 2015 01:10:29 -0700 (PDT) Received: from localhost ([122.172.133.50]) by smtp.gmail.com with ESMTPSA id a2sm20484444pas.47.2015.09.15.01.10.28 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 15 Sep 2015 01:10:29 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Thomas Gleixner , alexandra.yates@linux.intel.com, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] cpufreq: cpufreq_cpu_get_raw() isn't a static function anymore Date: Tue, 15 Sep 2015 13:40:16 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Its used outside of the core file and is exported as well. Drop the 'static' keyword from its declaration and fix below build error: linux/drivers/cpufreq/cpufreq.c:241:31: error: static declaration of 'cpufreq_cpu_get_raw' follows non-static declaration Fixes: 503655f70d9b ("cpufreq: acpi-cpufreq: Use cpufreq_cpu_get_raw() in ->get()") Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index a8252bb0f80c..ef5ed9470de9 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -238,7 +238,7 @@ int cpufreq_generic_init(struct cpufreq_policy *policy, } EXPORT_SYMBOL_GPL(cpufreq_generic_init); -static struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) +struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) { struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu);