[PATCH] [v3] fix sparse warning about dgap_poll_lock
Mark Hounschell
markh at compro.net
Thu Apr 24 14:33:25 UTC 2014
Oops, ignore this. I got the subject wrong. resending...
Mark
On 04/24/2014 10:31 AM, Mark Hounschell wrote:
> This patch fixes a sparse warning:
>
> warning: symbol 'dgap_poll_lock' was not declared. Should it be static?
>
> Signed-off-by: Mark Hounschell <markh at compro.net>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> ---
> drivers/staging/dgap/dgap.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
> index eb9cd74..81919e4 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;
>
More information about the devel
mailing list