Skip to contentSkip to conversation

misc: sgi-xp: xp_main: make some symbols static

PATCH New Zou Wei 1 participant 1 message Mar 24, 2021 Char and misc drivers

lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 misc: sgi-xp: xp_main: make some symbols static

The sparse tool complains as follows:

drivers/misc/sgi-xp/xp_main.c:24:22: warning:
symbol 'xp_dbg_name' was not declared. Should it be static?
drivers/misc/sgi-xp/xp_main.c:28:15: warning:
symbol 'xp_dbg_subname' was not declared. Should it be static?

These symbols are not used outside of xp_main.c, so this commit marks them static.

---
 drivers/misc/sgi-xp/xp_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/sgi-xp/xp_main.c +2 -2
index cf2965aa5c05..87d156c15f35 100644
@@ -21,11 +21,11 @@
 
 /* define the XP debug device structures to be used with dev_dbg() et al */
 
-struct device_driver xp_dbg_name = {
+static struct device_driver xp_dbg_name = {
 	.name = "xp"
 };
 
-struct device xp_dbg_subname = {
+static struct device xp_dbg_subname = {
 	.init_name = "",		/* set to "" */
 	.driver = &xp_dbg_name
 };
Signature · 1 line
2.17.1