Skip to contentSkip to conversation

rtc: sd3078: make symbol 'sd3078_driver' static

PATCH Applied Wei Yongjun 2 participants 2 messages Jan 16, 2019 – Jan 22, 2019

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

PATCH 1/1 rtc: sd3078: make symbol 'sd3078_driver' static

Fixes the following sparse warning:

drivers/rtc/rtc-sd3078.c:218:19: warning:
symbol 'sd3078_driver' was not declared. Should it be static?

Fixes 1d67a232105b ("rtc: sd3078: new driver.")
---
 drivers/rtc/rtc-sd3078.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-sd3078.c +1 -1
index a70d7311..704844f 100644
@@ -215,7 +215,7 @@ static int sd3078_probe(struct i2c_client *client,
 };
 MODULE_DEVICE_TABLE(of, rtc_dt_match);
 
-struct i2c_driver sd3078_driver = {
+static struct i2c_driver sd3078_driver = {
 	.driver     = {
 		.name   = "sd3078",
 		.owner  = THIS_MODULE,
maintainer Applied
#1 lore raw
Quoted 11 lines · Wei Yongjun

Fixes the following sparse warning:

drivers/rtc/rtc-sd3078.c:218:19: warning:
symbol 'sd3078_driver' was not declared. Should it be static?

Fixes 1d67a232105b ("rtc: sd3078: new driver.")
---
 drivers/rtc/rtc-sd3078.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com