Skip to contentSkip to conversation

staging: silicom: fix sparse warning for static variable

PATCH New James A Shackleford 1 participant 1 message Jun 1, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: silicom: fix sparse warning for static variable

This patch fixes the following sparse warning in bpctl_mod.c:
warning: symbol 'bpvm_lock' was not declared. Should it be static?

---
 drivers/staging/silicom/bpctl_mod.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/silicom/bpctl_mod.c +1 -1
index f74b5e7..765fce8 100644
@@ -41,7 +41,7 @@ MODULE_AUTHOR("Anna Lukin, [email protected]");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION(BP_MOD_DESCR);
 MODULE_VERSION(BP_MOD_VER);
-spinlock_t bpvm_lock;
+static spinlock_t bpvm_lock;
 
 #define unlock_bpctl()					\
 	up(&bpctl_sema);
Signature · 1 line
1.7.9.5