staging: lustre: fix sparse warning "should it be static"
authorToby Smith <toby@tismith.id.au>
Wed, 7 May 2014 06:21:21 +0000 (16:21 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 11:58:12 +0000 (20:58 +0900)
Fix the following warning in lib-eq.c
warning: symbol 'lnet_eq_dequeue_event' was not declared. Should it be static?

Signed-off-by: Toby Smith <toby@tismith.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/lib-eq.c

index 126984464d90618dca096b116d156ea376d6fe87..d25dcd8ba563bc66f5cdf7b3ae4763b3a83a4b96 100644 (file)
@@ -238,7 +238,7 @@ lnet_eq_enqueue_event(lnet_eq_t *eq, lnet_event_t *ev)
        lnet_eq_wait_unlock();
 }
 
-int
+static int
 lnet_eq_dequeue_event(lnet_eq_t *eq, lnet_event_t *ev)
 {
        int             new_index = eq->eq_deq_seq & (eq->eq_size - 1);