From patchwork Tue Sep 15 07:58:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 53616 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 7A94F22A22 for ; Tue, 15 Sep 2015 07:59:02 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf4818427wic.3 for ; Tue, 15 Sep 2015 00:59:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=zhgDpTQqNFRCGwWC+Bu19IEXcTdvvyTnzToxM/wqepQ=; b=gWNgxAW4PcJLwwfHRv+arX0FmeSwB5liwWz+Rl+C8b4yr9+DuTAlSix2zoEsgFZeAd sZlJC+mYUSF/uDhS9Pd+bvfi9z+LLhd8hHmseIkRhJ30mzgSY61P/V4TrA8PAYAQf2TB Cj+S2g+wVME0b3TRtAJKaTsIR7LGqrS1gR5K9XybAa6sz2HjbjuQfztC0Ob2mTOdesXf Hj5au66W/sIv7G0gqv8LDU8hbZOH/yZ9c9/J1RHqrBPWKgCiof2TNcL2M25QPwjNgNFE N/eq3Wn0urc4FE/aiWrCV5CSZdz1N7rmk+rP+4HNB5apdKLbeebOuH19SRGx0TIYT1cD U+zg== X-Gm-Message-State: ALoCoQkU9yP76SEOJGMuWAHs2yQVIl2Pskh0yUTrtIGiE+ZqLdOGfwRS49gWI7akA4YCAs5F1aY9 X-Received: by 10.180.81.165 with SMTP id b5mr475080wiy.1.1442303941458; Tue, 15 Sep 2015 00:59:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.198.135 with SMTP id jc7ls757842lac.54.gmail; Tue, 15 Sep 2015 00:59:01 -0700 (PDT) X-Received: by 10.152.198.167 with SMTP id jd7mr1074146lac.118.1442303941261; Tue, 15 Sep 2015 00:59:01 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id xh2si12417635lbb.130.2015.09.15.00.59.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 00:59:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lahg1 with SMTP id g1so72293543lah.1 for ; Tue, 15 Sep 2015 00:59:00 -0700 (PDT) X-Received: by 10.152.5.133 with SMTP id s5mr19017625las.19.1442303940511; Tue, 15 Sep 2015 00:59:00 -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 w3csp1630865lbq; Tue, 15 Sep 2015 00:58:59 -0700 (PDT) X-Received: by 10.107.12.158 with SMTP id 30mr31003567iom.154.1442303939521; Tue, 15 Sep 2015 00:58:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si10963581igg.72.2015.09.15.00.58.57; Tue, 15 Sep 2015 00:58:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S1752349AbbIOH6z (ORCPT + 29 others); Tue, 15 Sep 2015 03:58:55 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:36834 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389AbbIOH6x (ORCPT ); Tue, 15 Sep 2015 03:58:53 -0400 Received: by padhk3 with SMTP id hk3so169333823pad.3 for ; Tue, 15 Sep 2015 00:58:53 -0700 (PDT) X-Received: by 10.68.65.43 with SMTP id u11mr45009596pbs.167.1442303933160; Tue, 15 Sep 2015 00:58:53 -0700 (PDT) Received: from localhost ([122.172.133.50]) by smtp.gmail.com with ESMTPSA id ga1sm20283268pbb.80.2015.09.15.00.58.52 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 15 Sep 2015 00:58:52 -0700 (PDT) Date: Tue, 15 Sep 2015 13:28:49 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Kristen Carlson Accardi , open list , Sudeep Holla Subject: Re: [PATCH] cpufreq: pass policy to ->get() driver callback Message-ID: <20150915075849.GC6350@linux> References: <98e79b26d8250c33001c7a50378b0e288b8511db.1438339396.git.viresh.kumar@linaro.org> <11470100.cEo24Tpcgr@vostro.rjw.lan> <20150910012222.GN5266@linux> <1725227.VMGKuhRxma@vostro.rjw.lan> <20150911161802.GR9650@linux> <20150915073921.GA6350@linux> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20150915073921.GA6350@linux> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.215.48 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: , On 15-09-15, 13:09, Viresh Kumar wrote: > I would have sent a patch for this, but I thought you would like to > edit the original patch itself to not break git bisect. But in case you are applying it separately, here is the fix. -------------------------8<------------------------- From: Viresh Kumar Date: Tue, 15 Sep 2015 13:09:54 +0530 Subject: [PATCH] cpufreq: cpufreq_cpu_get_raw() isn't a static function anymore 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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ 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);