Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

James A Shackleford and committed by
Greg Kroah-Hartman
f4d90513 5b39bd5f

+1 -1
+1 -1
drivers/staging/silicom/bpctl_mod.c
··· 41 41 MODULE_LICENSE("GPL"); 42 42 MODULE_DESCRIPTION(BP_MOD_DESCR); 43 43 MODULE_VERSION(BP_MOD_VER); 44 - spinlock_t bpvm_lock; 44 + static spinlock_t bpvm_lock; 45 45 46 46 #define unlock_bpctl() \ 47 47 up(&bpctl_sema);