Skip to contentSkip to conversation

nvmem: sunplus-ocotp: Make symbol 'sp_otp_v0' static

PATCH New Wei Yongjun 1 participant 1 message Feb 26, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvmem: sunplus-ocotp: Make symbol 'sp_otp_v0' static

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")
---
 drivers/nvmem/sunplus-ocotp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvmem/sunplus-ocotp.c +1 -1
index 2dc59c22eb55..e0b11e13f5f8 100644
@@ -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,
 };