* [PATCH] staging: silicom: fix sparse warning for static variable
@ 2014-06-01 23:34 James A Shackleford
0 siblings, 0 replies; only message in thread
From: James A Shackleford @ 2014-06-01 23:34 UTC (permalink / raw)
To: gregkh, devel, linux-kernel; +Cc: James A Shackleford
This patch fixes the following sparse warning in bpctl_mod.c:
warning: symbol 'bpvm_lock' was not declared. Should it be static?
Signed-off-by: James A Shackleford <shack@linux.com>
---
drivers/staging/silicom/bpctl_mod.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/silicom/bpctl_mod.c b/drivers/staging/silicom/bpctl_mod.c
index f74b5e7..765fce8 100644
--- a/drivers/staging/silicom/bpctl_mod.c
+++ b/drivers/staging/silicom/bpctl_mod.c
@@ -41,7 +41,7 @@ MODULE_AUTHOR("Anna Lukin, annal@silicom.co.il");
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);
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-01 23:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-01 23:34 [PATCH] staging: silicom: fix sparse warning for static variable James A Shackleford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox