Skip to contentSkip to conversation

watchdog: sa1100: make variable sa1100dog_driver static

PATCH RESEND New sunliming 1 participant 1 message Aug 26, 2022 Watchdog device drivers

lore
Share & tools
lore

sunliming

author
#0 lore raw

PATCH RESEND 1/1 watchdog: sa1100: make variable sa1100dog_driver static

This symbol is not used outside of sa1100_wdt.c, so marks it static.

Fixes the following warning:

Quoted 1 line
Quoted 1 line

drivers/watchdog/sa1100_wdt.c:241:24: sparse: sparse: symbol 'sa1100dog_driver'

was not declared. Should it be static?

---
 drivers/watchdog/sa1100_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/sa1100_wdt.c +1 -1
index 2d0a06a158a8..82ac5d19f519 100644
@@ -238,7 +238,7 @@ static int sa1100dog_remove(struct platform_device *pdev)
 	return 0;
 }
 
-struct platform_driver sa1100dog_driver = {
+static struct platform_driver sa1100dog_driver = {
 	.driver.name = "sa1100_wdt",
 	.probe	  = sa1100dog_probe,
 	.remove	  = sa1100dog_remove,
Signature · 1 line
2.25.1