diff options
author | James A Shackleford <shack@linux.com> | 2014-06-01 19:34:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-01 19:46:56 -0400 |
commit | f4d90513c83d8d8e2e33f88c1ccba1db2dc31e72 (patch) | |
tree | 08489eabda9884d7c63e9a615036abe8adb5f4cb | |
parent | 5b39bd5f33bb65f60492441bf6b50d88bc843e1c (diff) |
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>
-rw-r--r-- | drivers/staging/silicom/bpctl_mod.c | 2 |
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"); | |||
41 | MODULE_LICENSE("GPL"); | 41 | MODULE_LICENSE("GPL"); |
42 | MODULE_DESCRIPTION(BP_MOD_DESCR); | 42 | MODULE_DESCRIPTION(BP_MOD_DESCR); |
43 | MODULE_VERSION(BP_MOD_VER); | 43 | MODULE_VERSION(BP_MOD_VER); |
44 | spinlock_t bpvm_lock; | 44 | static spinlock_t bpvm_lock; |
45 | 45 | ||
46 | #define unlock_bpctl() \ | 46 | #define unlock_bpctl() \ |
47 | up(&bpctl_sema); | 47 | up(&bpctl_sema); |