Skip to content

Commit

Permalink
staging: silicom: fix sparse warning for static variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James A Shackleford authored and Greg Kroah-Hartman committed Jun 1, 2014
1 parent 5b39bd5 commit f4d9051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/silicom/bpctl_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f4d9051

Please sign in to comment.