]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: dgap: fix sparse warning about dgap_poll_lock
authorMark Hounschell <markh@compro.net>
Thu, 24 Apr 2014 14:33:58 +0000 (10:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 19:16:58 +0000 (12:16 -0700)
This patch fixes a sparse warning:

warning: symbol 'dgap_poll_lock' was not declared. Should it be static?

Signed-off-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c

index 67e4adf1dbab8d9f308784a9f2607b11ffc4cdcb..54ce657d6f375c4984c727660e262fe42f753a1d 100644 (file)
@@ -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;