Message ID | 20230110042004.2378444-1-quic_bjorande@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2543366wrt; Mon, 9 Jan 2023 20:22:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXt6LONXEc/D6Tj46lBMDKRsYTNH61JzlZsOJVHWCLcplDtONIN7o3Kwuf7sy6+z126IAPEC X-Received: by 2002:a05:6a20:6986:b0:b5:d0e7:bea5 with SMTP id t6-20020a056a20698600b000b5d0e7bea5mr7250939pzk.26.1673324548373; Mon, 09 Jan 2023 20:22:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673324548; cv=none; d=google.com; s=arc-20160816; b=OBOm7MGH8ZYT0Qf03xFAA1vJt5Jhw4CCpz7qVKh2Ej2fQqm3V59f6AO02Mb7KOMfDg 77EB18vVmmjAJz259Bbf4zRqkN/ey3Y8e2vdnORk4bxxvvqwLxwsAj2ICqKH2QowiELp z6dJOxSVpI23zStl3AaccNq1VjFeVOQS0ba9xdWuFfY8GznrizXRiUUfL8buQmLBOnxr jzHHpRbCzjAm0UxZdnRDfmlT9O75VumltqLShrZFPNsmQACAWCcPMIclpWcmBIZaCGG1 vlQzBWP2PJECKHvPFQzeQYuOoVEkS+3ZSIfISxQ04j9MD68wbPuvOV7VTIODVfEfemyc w6lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BnYYqzMhmFm8/pHnrigKlooDqfUIkryCoC4mP89yIs8=; b=EezeOpFzpN186pEyvPxxb1D8gt47xwyJOGFTXtG+UPDT+O5fe9TEBzisUSXBzPqtS+ aU1Ua+6BCdTsP4uBomxn/3C2g9GH1A32+WcZljlY0wqGhtnDKdFufulrZMkWCkVD5SAf j0/fQ2xDzJ14sRK3VYmSOaMFl14OrEZMX9fPgsT7kcZ9JdE4tZ3zGZRKq2UzgOA4jGo3 dPTYkOs/ITF0whjkJnveooBsAr8T0wzr39gxRtu+rw9RW/Ovid4L3OljX0jXWZheOYqA IbbRzF9yaANU3+fVqOpk4cU1zH7tBuE7gL/PNxBZcdfb5wYCeSWFGN63BNnPY+HmL10r brIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=o8Ub1YUQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a63f110000000b004773bf41b74si10651579pgi.30.2023.01.09.20.22.13; Mon, 09 Jan 2023 20:22:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=o8Ub1YUQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229505AbjAJEUX (ORCPT <rfc822;syz17693488234@gmail.com> + 99 others); Mon, 9 Jan 2023 23:20:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbjAJEUT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 9 Jan 2023 23:20:19 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0418338ACD; Mon, 9 Jan 2023 20:20:17 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30A3atog016573; Tue, 10 Jan 2023 04:20:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=BnYYqzMhmFm8/pHnrigKlooDqfUIkryCoC4mP89yIs8=; b=o8Ub1YUQr7N7ir856+7UN2Xh374OekTSIXhZiyGUa8ClpNm0p48cO9Ak8Z+LlatR4RaY PphG0KWlshjzWUWUpyKMdfrZpu2pYyuFLn0sbKrXkYOTXhvZ5QvaX5qD2kMTzmg40SZU Ytao2ZN4j1UaHW5M6TKnRLL8a+4qE0lek9pNGiGwQn7lZQqG4+l0q3eLqJyVTmahiLkT jrRt3Cj+zE5feIgBYWu/7gzTA86qjDommXNpHF5SutZQxh4NK0f9+ZgcweYEYwGOp2iZ tPWyO9eIZjGMVOz1FnziuG13l8FVGOQNEFIdkOktgQSlrz92e5bZDWUs1SDlj6clyD7c pQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n0q6es2nm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 04:20:11 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30A4K9Ue004027 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 04:20:09 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 9 Jan 2023 20:20:09 -0800 From: Bjorn Andersson <quic_bjorande@quicinc.com> To: Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> CC: <linux-arm-msm@vger.kernel.org>, <linux-kernel@vger.kernel.org>, kernel test robot <lkp@intel.com> Subject: [PATCH] soc: qcom: ramp_controller: Make things static Date: Mon, 9 Jan 2023 20:20:04 -0800 Message-ID: <20230110042004.2378444-1-quic_bjorande@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: aQMDeETSARUTkZsoM0eFCIGxRQqW5_st X-Proofpoint-ORIG-GUID: aQMDeETSARUTkZsoM0eFCIGxRQqW5_st X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-09_16,2023-01-09_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=999 clxscore=1011 impostorscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301100025 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_SBL_CSS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754607961442480658?= X-GMAIL-MSGID: =?utf-8?q?1754607961442480658?= |
Series |
soc: qcom: ramp_controller: Make things static
|
|
Commit Message
Bjorn Andersson
Jan. 10, 2023, 4:20 a.m. UTC
The five msm8976_cfg_* objects ought to be static, as reported by LKP
and sparse, fix this.
drivers/soc/qcom/ramp_controller.c:235:27: sparse: sparse: symbol 'msm8976_cfg_dfs_sid' was not declared. Should it be static?
drivers/soc/qcom/ramp_controller.c:246:27: sparse: sparse: symbol 'msm8976_cfg_link_sid' was not declared. Should it be static?
drivers/soc/qcom/ramp_controller.c:250:27: sparse: sparse: symbol 'msm8976_cfg_lmh_sid' was not declared. Should it be static?
drivers/soc/qcom/ramp_controller.c:256:27: sparse: sparse: symbol 'msm8976_cfg_ramp_en' was not declared. Should it be static?
drivers/soc/qcom/ramp_controller.c:262:27: sparse: sparse: symbol 'msm8976_cfg_ramp_dis' was not declared. Should it be static?
Fixes: a723c95fa137 ("soc: qcom: Add Qualcomm Ramp Controller driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
---
drivers/soc/qcom/ramp_controller.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Comments
Il 10/01/23 05:20, Bjorn Andersson ha scritto: > The five msm8976_cfg_* objects ought to be static, as reported by LKP > and sparse, fix this. > > drivers/soc/qcom/ramp_controller.c:235:27: sparse: sparse: symbol 'msm8976_cfg_dfs_sid' was not declared. Should it be static? > drivers/soc/qcom/ramp_controller.c:246:27: sparse: sparse: symbol 'msm8976_cfg_link_sid' was not declared. Should it be static? > drivers/soc/qcom/ramp_controller.c:250:27: sparse: sparse: symbol 'msm8976_cfg_lmh_sid' was not declared. Should it be static? > drivers/soc/qcom/ramp_controller.c:256:27: sparse: sparse: symbol 'msm8976_cfg_ramp_en' was not declared. Should it be static? > drivers/soc/qcom/ramp_controller.c:262:27: sparse: sparse: symbol 'msm8976_cfg_ramp_dis' was not declared. Should it be static? > > Fixes: a723c95fa137 ("soc: qcom: Add Qualcomm Ramp Controller driver") > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Thanks for catching that and swiftly fixing it! Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cheers, Angelo
On Mon, 9 Jan 2023 20:20:04 -0800, Bjorn Andersson wrote: > The five msm8976_cfg_* objects ought to be static, as reported by LKP > and sparse, fix this. > > drivers/soc/qcom/ramp_controller.c:235:27: sparse: sparse: symbol 'msm8976_cfg_dfs_sid' was not declared. Should it be static? > drivers/soc/qcom/ramp_controller.c:246:27: sparse: sparse: symbol 'msm8976_cfg_link_sid' was not declared. Should it be static? > drivers/soc/qcom/ramp_controller.c:250:27: sparse: sparse: symbol 'msm8976_cfg_lmh_sid' was not declared. Should it be static? > drivers/soc/qcom/ramp_controller.c:256:27: sparse: sparse: symbol 'msm8976_cfg_ramp_en' was not declared. Should it be static? > drivers/soc/qcom/ramp_controller.c:262:27: sparse: sparse: symbol 'msm8976_cfg_ramp_dis' was not declared. Should it be static? > > [...] Applied, thanks! [1/1] soc: qcom: ramp_controller: Make things static commit: d45fb976f46600554e2db02ce5d16d1dff84d106 Best regards,
diff --git a/drivers/soc/qcom/ramp_controller.c b/drivers/soc/qcom/ramp_controller.c index 93652b07e812..dc74d2a19de2 100644 --- a/drivers/soc/qcom/ramp_controller.c +++ b/drivers/soc/qcom/ramp_controller.c @@ -232,7 +232,7 @@ static const struct regmap_config qrc_regmap_config = { .fast_io = true, }; -const struct reg_sequence msm8976_cfg_dfs_sid[] = { +static const struct reg_sequence msm8976_cfg_dfs_sid[] = { { 0x10, 0xfefebff7 }, { 0x14, 0xfdff7fef }, { 0x18, 0xfbffdefb }, @@ -243,23 +243,23 @@ const struct reg_sequence msm8976_cfg_dfs_sid[] = { { 0x2c, 0x8102 } }; -const struct reg_sequence msm8976_cfg_link_sid[] = { +static const struct reg_sequence msm8976_cfg_link_sid[] = { { 0x40, 0xfc987 } }; -const struct reg_sequence msm8976_cfg_lmh_sid[] = { +static const struct reg_sequence msm8976_cfg_lmh_sid[] = { { 0x30, 0x77706db }, { 0x34, 0x5550249 }, { 0x38, 0x111 } }; -const struct reg_sequence msm8976_cfg_ramp_en[] = { +static const struct reg_sequence msm8976_cfg_ramp_en[] = { { 0x50, 0x800 }, /* pre_en */ { 0x50, 0xc00 }, /* en */ { 0x50, 0x400 } /* post_en */ }; -const struct reg_sequence msm8976_cfg_ramp_dis[] = { +static const struct reg_sequence msm8976_cfg_ramp_dis[] = { { 0x50, 0x0 } };