[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220613063111.654893-1-jinxiaoyun2@huawei.com>
Date: Mon, 13 Jun 2022 14:31:11 +0800
From: Jin Xiaoyun <jinxiaoyun2@...wei.com>
To: <rafael@...nel.org>, <daniel.lezcano@...aro.org>,
<amitk@...nel.org>, <rui.zhang@...el.com>
CC: <linux-pm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Jin Xiaoyun <jinxiaoyun2@...wei.com>,
Hulk Robot <hulkci@...wei.com>
Subject: [PATCH -next] thermal: k3_j72xx_bandgap: Make k3_j72xx_bandgap_j721e_data and k3_j72xx_bandgap_j7200_data static
Fix sparse warnings:
drivers/thermal/k3_j72xx_bandgap.c:532:36: sparse: sparse: symbol 'k3_j72xx_bandgap_j721e_data' was not declared. Should it be static?
drivers/thermal/k3_j72xx_bandgap.c:536:36: sparse: sparse: symbol 'k3_j72xx_bandgap_j7200_data' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Jin Xiaoyun <jinxiaoyun2@...wei.com>
---
drivers/thermal/k3_j72xx_bandgap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/k3_j72xx_bandgap.c b/drivers/thermal/k3_j72xx_bandgap.c
index 64e323158952..f8ff20feb120 100644
--- a/drivers/thermal/k3_j72xx_bandgap.c
+++ b/drivers/thermal/k3_j72xx_bandgap.c
@@ -529,11 +529,11 @@ static int k3_j72xx_bandgap_remove(struct platform_device *pdev)
return 0;
}
-const struct k3_j72xx_bandgap_data k3_j72xx_bandgap_j721e_data = {
+static const struct k3_j72xx_bandgap_data k3_j72xx_bandgap_j721e_data = {
.has_errata_i2128 = 1,
};
-const struct k3_j72xx_bandgap_data k3_j72xx_bandgap_j7200_data = {
+static const struct k3_j72xx_bandgap_data k3_j72xx_bandgap_j7200_data = {
.has_errata_i2128 = 0,
};
--
2.25.1
Powered by blists - more mailing lists