mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
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>
This commit is contained in:
parent
5b39bd5f33
commit
f4d90513c8
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ MODULE_AUTHOR("Anna Lukin, annal@silicom.co.il");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_DESCRIPTION(BP_MOD_DESCR);
|
MODULE_DESCRIPTION(BP_MOD_DESCR);
|
||||||
MODULE_VERSION(BP_MOD_VER);
|
MODULE_VERSION(BP_MOD_VER);
|
||||||
spinlock_t bpvm_lock;
|
static spinlock_t bpvm_lock;
|
||||||
|
|
||||||
#define unlock_bpctl() \
|
#define unlock_bpctl() \
|
||||||
up(&bpctl_sema);
|
up(&bpctl_sema);
|
||||||
|
|
Loading…
Reference in a new issue