Patchwork [-next] interconnect: qcom: Make qcs404_rpm static

login
register
mail settings
Submitter YueHaibing
Date April 13, 2019, 2:19 p.m.
Message ID <20190413141954.38900-1-yuehaibing@huawei.com>
Download mbox | patch
Permalink /patch/772409/
State New
Headers show

Comments

YueHaibing - April 13, 2019, 2:19 p.m.
From: YueHaibing <yuehaibing@huawei.com>

Fix sparse warning:

drivers/interconnect/qcom/qcs404.c:27:21:
 warning: symbol 'qcs404_rpm' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/interconnect/qcom/qcs404.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/interconnect/qcom/qcs404.c b/drivers/interconnect/qcom/qcs404.c
index de35fd7..c320cbd 100644
--- a/drivers/interconnect/qcom/qcs404.c
+++ b/drivers/interconnect/qcom/qcs404.c
@@ -24,7 +24,7 @@ 
 #define to_qcom_provider(_provider) \
 	container_of(_provider, struct qcom_icc_provider, provider)
 
-struct qcom_smd_rpm *qcs404_rpm;
+static struct qcom_smd_rpm *qcs404_rpm;
 
 struct icc_rpm_smd_req {
 	__le32 key;