diff options
author | Jeremiah Mahler <jmmahler@gmail.com> | 2014-12-27 12:46:47 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-17 15:52:58 -0800 |
commit | 62366bf14c9a198ae4daadffd4d8c4156febfd18 (patch) | |
tree | 8c6cdd2d070c5d585ecfe829f3c9442e4e3b0094 /drivers/staging/lustre/lnet/selftest/timer.c | |
parent | staging: lustre: selftest: fix "not declared" by declaring in header (diff) | |
download | linux-dev-62366bf14c9a198ae4daadffd4d8c4156febfd18.tar.xz linux-dev-62366bf14c9a198ae4daadffd4d8c4156febfd18.zip |
staging: lustre: selftest: fix "not declared" by declaring static
Fix several "symbol '...' was not declared" sparse warnings
for variables which are only used locally by declaring them static.
Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lnet/selftest/timer.c')
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/timer.c b/drivers/staging/lustre/lnet/selftest/timer.c index f8352c2a7d37..441f9472a834 100644 --- a/drivers/staging/lustre/lnet/selftest/timer.c +++ b/drivers/staging/lustre/lnet/selftest/timer.c @@ -57,7 +57,7 @@ #define STTIMER_SLOT(t) (&stt_data.stt_hash[(((t) >> STTIMER_MINPOLL) & \ (STTIMER_NSLOTS - 1))]) -struct st_timer_data { +static struct st_timer_data { spinlock_t stt_lock; /* start time of the slot processed previously */ unsigned long stt_prev_slot; |