From: Mark Hounschell Date: Thu, 24 Apr 2014 14:33:58 +0000 (-0400) Subject: staging: dgap: fix sparse warning about dgap_poll_lock X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=45c44ddd0158ba2219c48ce48fe60f3a33b933bd;p=openwrt%2Fstaging%2Fblogic.git staging: dgap: fix sparse warning about dgap_poll_lock This patch fixes a sparse warning: warning: symbol 'dgap_poll_lock' was not declared. Should it be static? Signed-off-by: Mark Hounschell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 67e4adf1dbab..54ce657d6f37 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -226,7 +226,7 @@ static uint dgap_count = 500; /* * Poller stuff */ -DEFINE_SPINLOCK(dgap_poll_lock); /* Poll scheduling lock */ +static DEFINE_SPINLOCK(dgap_poll_lock); /* Poll scheduling lock */ static ulong dgap_poll_time; /* Time of next poll */ static uint dgap_poll_stop; /* Used to tell poller to stop */ static struct timer_list dgap_poll_timer;