* [PATCH -next] nvmem: sunplus-ocotp: Make symbol 'sp_otp_v0' static
@ 2022-02-26 9:43 Wei Yongjun
0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2022-02-26 9:43 UTC (permalink / raw)
To: weiyongjun1, Vincent Shih, Srinivas Kandagatla
Cc: linux-kernel, kernel-janitors, Hulk Robot
The sparse tool complains as follows:
drivers/nvmem/sunplus-ocotp.c:74:29: warning:
symbol 'sp_otp_v0' was not declared. Should it be static?
This symbol is not used outside of sunplus-ocotp.c, so marks it static.
Fixes: 5293c629db95 ("nvmem: Add driver for OCOTP in Sunplus SP7021")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/nvmem/sunplus-ocotp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvmem/sunplus-ocotp.c b/drivers/nvmem/sunplus-ocotp.c
index 2dc59c22eb55..e0b11e13f5f8 100644
--- a/drivers/nvmem/sunplus-ocotp.c
+++ b/drivers/nvmem/sunplus-ocotp.c
@@ -71,7 +71,7 @@ struct sp_ocotp_data {
int size;
};
-const struct sp_ocotp_data sp_otp_v0 = {
+static const struct sp_ocotp_data sp_otp_v0 = {
.size = QAC628_OTP_SIZE,
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-26 9:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-26 9:43 [PATCH -next] nvmem: sunplus-ocotp: Make symbol 'sp_otp_v0' static Wei Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®