From patchwork Mon Dec 23 14:19:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 11308345 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 26FE0138D for ; Mon, 23 Dec 2019 14:20:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E5ECC21569 for ; Mon, 23 Dec 2019 14:20:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=flawful.org header.i=@flawful.org header.b="OQo7slig" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726791AbfLWOUv (ORCPT ); Mon, 23 Dec 2019 09:20:51 -0500 Received: from pio-pvt-msa3.bahnhof.se ([79.136.2.42]:40188 "EHLO pio-pvt-msa3.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbfLWOUv (ORCPT ); Mon, 23 Dec 2019 09:20:51 -0500 Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTP id DF6FC3F75F; Mon, 23 Dec 2019 15:20:48 +0100 (CET) Authentication-Results: pio-pvt-msa3.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=flawful.org header.i=@flawful.org header.b=OQo7slig; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: X-Spam-Status: No, score=-2.099 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from pio-pvt-msa3.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa3.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QFDBZ42vUjD2; Mon, 23 Dec 2019 15:20:48 +0100 (CET) Received: from flawful.org (ua-84-217-220-205.bbcust.telenor.se [84.217.220.205]) (Authenticated sender: mb274189) by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTPA id 105483F72C; Mon, 23 Dec 2019 15:20:45 +0100 (CET) Received: by flawful.org (Postfix, from userid 1001) id 5032F1451; Mon, 23 Dec 2019 15:20:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flawful.org; s=mail; t=1577110844; bh=QxU7dQ1hA9pBBbft+aq6Xdh0G5XZTnumkFMlEkTba08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OQo7sligqJUEI4PGsaW+eJXyktnuzNJUo4aGW4+wpu7vdLPL4a+kCMLbCMAietd1r WEz0ozHtvbIwLgd+l4godkebBHXYlH4BOt7xQCm2yu0Mvo1ybUvhbY7u9TEPmYrduf urtODC5psM9B7y7a1K3V7lIc7OywBGC951L/tc8s= From: Niklas Cassel To: "Rafael J . Wysocki" Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Niklas Cassel Subject: [PATCH 1/5] power: avs: qcom-cpr: fix invalid printk specifier in debug print Date: Mon, 23 Dec 2019 15:19:30 +0100 Message-Id: <20191223141934.19837-2-nks@flawful.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191223141934.19837-1-nks@flawful.org> References: <20191223141934.19837-1-nks@flawful.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org drivers/power/avs/qcom-cpr.c:838:15: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘ssize_t’ Reported-by: kbuild test robot Signed-off-by: Niklas Cassel Reviewed-by: Bjorn Andersson --- drivers/power/avs/qcom-cpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/avs/qcom-cpr.c b/drivers/power/avs/qcom-cpr.c index a3187973bbb5..a52d2cef1300 100644 --- a/drivers/power/avs/qcom-cpr.c +++ b/drivers/power/avs/qcom-cpr.c @@ -835,7 +835,7 @@ static int cpr_read_efuse(struct device *dev, const char *cname, u32 *data) *data |= ret[i] << (8 * i); kfree(ret); - dev_dbg(dev, "efuse read(%s) = %x, bytes %ld\n", cname, *data, len); + dev_dbg(dev, "efuse read(%s) = %x, bytes %zd\n", cname, *data, len); return 0; } From patchwork Mon Dec 23 14:19:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 11308351 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C307614F6 for ; Mon, 23 Dec 2019 14:20:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95B6E222D9 for ; Mon, 23 Dec 2019 14:20:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=flawful.org header.i=@flawful.org header.b="uwCzjfwz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726928AbfLWOUy (ORCPT ); Mon, 23 Dec 2019 09:20:54 -0500 Received: from pio-pvt-msa2.bahnhof.se ([79.136.2.41]:33576 "EHLO pio-pvt-msa2.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbfLWOUx (ORCPT ); Mon, 23 Dec 2019 09:20:53 -0500 Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa2.bahnhof.se (Postfix) with ESMTP id 5B4DB3FBB5; Mon, 23 Dec 2019 15:20:51 +0100 (CET) Authentication-Results: pio-pvt-msa2.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=flawful.org header.i=@flawful.org header.b=uwCzjfwz; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: X-Spam-Status: No, score=-2.099 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from pio-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pbe8qgPEIJXl; Mon, 23 Dec 2019 15:20:50 +0100 (CET) Received: from flawful.org (ua-84-217-220-205.bbcust.telenor.se [84.217.220.205]) (Authenticated sender: mb274189) by pio-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id 954F83F9B3; Mon, 23 Dec 2019 15:20:50 +0100 (CET) Received: by flawful.org (Postfix, from userid 1001) id 2E6401451; Mon, 23 Dec 2019 15:20:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flawful.org; s=mail; t=1577110850; bh=/NaZ4QhQ5cY2pUTKpzcqxJ2i6ObcICdssifaM7FEZ+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uwCzjfwzllktrytOnuE9inUUFoOHSCo5gP+2ONct/Y4nqO9JSBG1ekvY0Oq7660U0 AepLJOticuJIciiMqVbtbuRplpbV4dfUqX1ga/ZQPI/spuN2gjcP1vdJaq9vtAJv4u KQUZ8LVoo6Q2yEUBDCGH3ntXOvXGVznQNcQ3z66k= From: Niklas Cassel To: "Rafael J . Wysocki" Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Niklas Cassel Subject: [PATCH 2/5] power: avs: qcom-cpr: fix unsigned expression compared with zero Date: Mon, 23 Dec 2019 15:19:31 +0100 Message-Id: <20191223141934.19837-3-nks@flawful.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191223141934.19837-1-nks@flawful.org> References: <20191223141934.19837-1-nks@flawful.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org drivers/power/avs/qcom-cpr.c:1539:5-21: warning: unsigned expression compared with zero: drv->num_corners < 0 Reported-by: kbuild test robot Reported-by: Julia Lawall Signed-off-by: Niklas Cassel Reviewed-by: Bjorn Andersson --- drivers/power/avs/qcom-cpr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/power/avs/qcom-cpr.c b/drivers/power/avs/qcom-cpr.c index a52d2cef1300..232836a1ef27 100644 --- a/drivers/power/avs/qcom-cpr.c +++ b/drivers/power/avs/qcom-cpr.c @@ -1535,11 +1535,13 @@ static int cpr_pd_attach_dev(struct generic_pm_domain *domain, * The reason for this is that we need to know the highest * frequency associated with each fuse corner. */ - drv->num_corners = dev_pm_opp_get_opp_count(&drv->pd.dev); - if (drv->num_corners < 0) { - ret = drv->num_corners; + ret = dev_pm_opp_get_opp_count(&drv->pd.dev); + if (ret < 0) { + dev_err(drv->dev, "could not get OPP count\n"); goto unlock; } + drv->num_corners = ret; + if (drv->num_corners < 2) { dev_err(drv->dev, "need at least 2 OPPs to use CPR\n"); ret = -EINVAL; From patchwork Mon Dec 23 14:19:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 11308369 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 80F4314F6 for ; Mon, 23 Dec 2019 14:26:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33DE92073A for ; Mon, 23 Dec 2019 14:26:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=flawful.org header.i=@flawful.org header.b="eBaGpOHS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726795AbfLWO0m (ORCPT ); Mon, 23 Dec 2019 09:26:42 -0500 Received: from ste-pvt-msa1.bahnhof.se ([213.80.101.70]:13431 "EHLO ste-pvt-msa1.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbfLWO0m (ORCPT ); Mon, 23 Dec 2019 09:26:42 -0500 X-Greylist: delayed 371 seconds by postgrey-1.27 at vger.kernel.org; Mon, 23 Dec 2019 09:26:41 EST Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id 0C58F3F719; Mon, 23 Dec 2019 15:20:55 +0100 (CET) Authentication-Results: ste-pvt-msa1.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=flawful.org header.i=@flawful.org header.b=eBaGpOHS; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: X-Spam-Status: No, score=-2.099 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from ste-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (ste-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lwOSmu6K9FBX; Mon, 23 Dec 2019 15:20:54 +0100 (CET) Received: from flawful.org (ua-84-217-220-205.bbcust.telenor.se [84.217.220.205]) (Authenticated sender: mb274189) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 52D933F6BF; Mon, 23 Dec 2019 15:20:54 +0100 (CET) Received: by flawful.org (Postfix, from userid 1001) id E72401451; Mon, 23 Dec 2019 15:20:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flawful.org; s=mail; t=1577110854; bh=EVSdvjDj26Gix+tIhFTyvvE5GErU3GO5VoBVKSCGr7c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eBaGpOHSK/RfhpoUK84NvRX174ijyj896C0x8fx2SWvy+v/MtILAx/6ja4TmoS4HS GJ07Xzw/cvB9FfZ7JKpbuL1CXfiPQnvjAqesaR7MAhKDNkZgCEGYqpH4Y1Hy8IcWql kXVfT9ImosR9ig9iHIXGdA2+1tp/UiINGJbr79Jo= From: Niklas Cassel To: "Rafael J . Wysocki" Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Niklas Cassel Subject: [PATCH 3/5] power: avs: qcom-cpr: make sure that regmap is available Date: Mon, 23 Dec 2019 15:19:32 +0100 Message-Id: <20191223141934.19837-4-nks@flawful.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191223141934.19837-1-nks@flawful.org> References: <20191223141934.19837-1-nks@flawful.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org drivers/power/avs/qcom-cpr.c:402:4: error: implicit declaration of function ‘regmap_multi_reg_write’ Signed-off-by: Niklas Cassel Reviewed-by: Bjorn Andersson --- drivers/power/avs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/avs/Kconfig b/drivers/power/avs/Kconfig index c21882908a66..b8fe166cd0d9 100644 --- a/drivers/power/avs/Kconfig +++ b/drivers/power/avs/Kconfig @@ -16,6 +16,7 @@ config QCOM_CPR tristate "QCOM Core Power Reduction (CPR) support" depends on POWER_AVS select PM_OPP + select REGMAP help Say Y here to enable support for the CPR hardware found on Qualcomm SoCs like QCS404. From patchwork Mon Dec 23 14:19:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 11308357 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B877114F6 for ; Mon, 23 Dec 2019 14:21:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95D9022525 for ; Mon, 23 Dec 2019 14:21:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=flawful.org header.i=@flawful.org header.b="UDGlQvn9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726893AbfLWOVD (ORCPT ); Mon, 23 Dec 2019 09:21:03 -0500 Received: from pio-pvt-msa2.bahnhof.se ([79.136.2.41]:33586 "EHLO pio-pvt-msa2.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbfLWOVC (ORCPT ); Mon, 23 Dec 2019 09:21:02 -0500 Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa2.bahnhof.se (Postfix) with ESMTP id AD19C3FBB5; Mon, 23 Dec 2019 15:21:00 +0100 (CET) Authentication-Results: pio-pvt-msa2.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=flawful.org header.i=@flawful.org header.b=UDGlQvn9; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: X-Spam-Status: No, score=-2.099 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from pio-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bm2r93y-Ua7l; Mon, 23 Dec 2019 15:21:00 +0100 (CET) Received: from flawful.org (ua-84-217-220-205.bbcust.telenor.se [84.217.220.205]) (Authenticated sender: mb274189) by pio-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id 0E0433F9B3; Mon, 23 Dec 2019 15:21:00 +0100 (CET) Received: by flawful.org (Postfix, from userid 1001) id AE3A31451; Mon, 23 Dec 2019 15:20:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flawful.org; s=mail; t=1577110859; bh=EyKdGWY3GSzMDVIT/5i98X8pT95aI1RKjyAzIbDN3gg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UDGlQvn9CBU5Z/6Ysfjy4ERF+MeM06p2g5AkbPnEXuo/zkiDjCOyKPxwobefmMXee CNJswv4xJ2cIuAgJC4EeanYI3MjULskFCN+V4q+WmzWTkFWKIiu7t6VDk4DpXSQE24 g2qQpQKRoGgLC0FKnodQuO/H4gaAcxfS+ZOSbDSU= From: Niklas Cassel To: "Rafael J . Wysocki" Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Niklas Cassel Subject: [PATCH 4/5] power: avs: qcom-cpr: remove set but unused variable Date: Mon, 23 Dec 2019 15:19:33 +0100 Message-Id: <20191223141934.19837-5-nks@flawful.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191223141934.19837-1-nks@flawful.org> References: <20191223141934.19837-1-nks@flawful.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org drivers/power/avs/qcom-cpr.c:896:35: warning: variable ‘prev’ set but not used Detected when running make with W=1. Signed-off-by: Niklas Cassel Reviewed-by: Bjorn Andersson --- drivers/power/avs/qcom-cpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/avs/qcom-cpr.c b/drivers/power/avs/qcom-cpr.c index 232836a1ef27..484dd498f8b9 100644 --- a/drivers/power/avs/qcom-cpr.c +++ b/drivers/power/avs/qcom-cpr.c @@ -893,7 +893,7 @@ static int cpr_fuse_corner_init(struct cpr_drv *drv) int i; unsigned int step_volt; struct fuse_corner_data *fdata; - struct fuse_corner *fuse, *end, *prev; + struct fuse_corner *fuse, *end; int uV; const struct reg_sequence *accs; int ret; @@ -909,7 +909,7 @@ static int cpr_fuse_corner_init(struct cpr_drv *drv) end = &fuse[desc->num_fuse_corners - 1]; fdata = desc->cpr_fuses.fuse_corner_data; - for (i = 0, prev = NULL; fuse <= end; fuse++, fuses++, i++, fdata++) { + for (i = 0; fuse <= end; fuse++, fuses++, i++, fdata++) { /* * Update SoC voltages: platforms might choose a different * regulators than the one used to characterize the algorithms From patchwork Mon Dec 23 14:19:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 11308361 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7361114F6 for ; Mon, 23 Dec 2019 14:21:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 46E2E21775 for ; Mon, 23 Dec 2019 14:21:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=flawful.org header.i=@flawful.org header.b="Go0Z7Dm9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726866AbfLWOVI (ORCPT ); Mon, 23 Dec 2019 09:21:08 -0500 Received: from pio-pvt-msa2.bahnhof.se ([79.136.2.41]:33602 "EHLO pio-pvt-msa2.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbfLWOVI (ORCPT ); Mon, 23 Dec 2019 09:21:08 -0500 Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa2.bahnhof.se (Postfix) with ESMTP id 53EF13FBB5; Mon, 23 Dec 2019 15:21:06 +0100 (CET) Authentication-Results: pio-pvt-msa2.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=flawful.org header.i=@flawful.org header.b=Go0Z7Dm9; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: X-Spam-Status: No, score=-2.099 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from pio-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WnGWaXUCLzGK; Mon, 23 Dec 2019 15:21:05 +0100 (CET) Received: from flawful.org (ua-84-217-220-205.bbcust.telenor.se [84.217.220.205]) (Authenticated sender: mb274189) by pio-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id B9AEA3F9B3; Mon, 23 Dec 2019 15:21:04 +0100 (CET) Received: by flawful.org (Postfix, from userid 1001) id 5B9C81451; Mon, 23 Dec 2019 15:21:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flawful.org; s=mail; t=1577110864; bh=ksOkWQMmX+4q/9NHyXFHGnFxhabHh8Tb5y2rKm1ZcN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Go0Z7Dm9ROW3yNuSBWCeLXEiPRFcRNW+/QV8CMDtJlvpeaB9A8fG4JdjZ1/VhHWzM /IiJI6pG3u3NmIW89AQYTuIG+3Yj+ez09GiNu7of5u26+82ypvpWgaIYaWBkILSzjG fuglCTbZQ3WKs+gz3YpdXeeoVnHf1iYITeevDVnY= From: Niklas Cassel To: "Rafael J . Wysocki" Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Niklas Cassel Subject: [PATCH 5/5] power: avs: qcom-cpr: make cpr_get_opp_hz_for_req() static Date: Mon, 23 Dec 2019 15:19:34 +0100 Message-Id: <20191223141934.19837-6-nks@flawful.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191223141934.19837-1-nks@flawful.org> References: <20191223141934.19837-1-nks@flawful.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org drivers/power/avs/qcom-cpr.c:1081:15: warning: no previous prototype for ‘cpr_get_opp_hz_for_req’ Detected when running make with W=1. Signed-off-by: Niklas Cassel Reviewed-by: Bjorn Andersson --- drivers/power/avs/qcom-cpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/avs/qcom-cpr.c b/drivers/power/avs/qcom-cpr.c index 484dd498f8b9..9247f53550b3 100644 --- a/drivers/power/avs/qcom-cpr.c +++ b/drivers/power/avs/qcom-cpr.c @@ -1078,8 +1078,8 @@ static unsigned int cpr_get_fuse_corner(struct dev_pm_opp *opp) return fuse_corner; } -unsigned long cpr_get_opp_hz_for_req(struct dev_pm_opp *ref, - struct device *cpu_dev) +static unsigned long cpr_get_opp_hz_for_req(struct dev_pm_opp *ref, + struct device *cpu_dev) { u64 rate = 0; struct device_node *ref_np;