summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorJames A Shackleford <shack@linux.com>2014-06-01 19:34:28 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-01 16:46:56 -0700
commitf4d90513c83d8d8e2e33f88c1ccba1db2dc31e72 (patch)
tree08489eabda9884d7c63e9a615036abe8adb5f4cb /drivers/staging
parent5b39bd5f33bb65f60492441bf6b50d88bc843e1c (diff)
downloadlinux-f4d90513c83d8d8e2e33f88c1ccba1db2dc31e72.tar.bz2
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? Signed-off-by: James A Shackleford <shack@linux.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/silicom/bpctl_mod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/silicom/bpctl_mod.c b/drivers/staging/silicom/bpctl_mod.c
index f74b5e711609..765fce84d9dd 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);