Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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:

>> drivers/watchdog/sa1100_wdt.c:241:24: sparse: sparse: symbol 'sa1100dog_driver'
was not declared. Should it be static?

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: sunliming <sunliming@kylinos.cn>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220802020819.1226454-1-sunliming@kylinos.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

sunliming and committed by
Wim Van Sebroeck
74b31987 b26b9608

+1 -1
+1 -1
drivers/watchdog/sa1100_wdt.c
··· 238 238 return 0; 239 239 } 240 240 241 - struct platform_driver sa1100dog_driver = { 241 + static struct platform_driver sa1100dog_driver = { 242 242 .driver.name = "sa1100_wdt", 243 243 .probe = sa1100dog_probe, 244 244 .remove = sa1100dog_remove,