From: Toby Smith Date: Wed, 7 May 2014 06:21:21 +0000 (+1000) Subject: staging: lustre: fix sparse warning "should it be static" X-Git-Tag: v3.16-rc1~30^2~36^2~524 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f5b738480aeacf34cd85e431f3add284410ff40;p=thirdparty%2Fkernel%2Flinux.git staging: lustre: fix sparse warning "should it be static" 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/lnet/lib-eq.c b/drivers/staging/lustre/lnet/lnet/lib-eq.c index 126984464d906..d25dcd8ba563b 100644 --- a/drivers/staging/lustre/lnet/lnet/lib-eq.c +++ b/drivers/staging/lustre/lnet/lnet/lib-eq.c @@ -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);