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/rpc.c | |
parent | 8f67fe2cd1ded2d8e5736f04064eabe51bd69712 (diff) | |
download | linux-62366bf14c9a198ae4daadffd4d8c4156febfd18.tar.bz2 |
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/rpc.c')
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/rpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/rpc.c b/drivers/staging/lustre/lnet/selftest/rpc.c index b602077c8bb5..bb6aa2ea136b 100644 --- a/drivers/staging/lustre/lnet/selftest/rpc.c +++ b/drivers/staging/lustre/lnet/selftest/rpc.c @@ -54,7 +54,7 @@ typedef enum { SRPC_STATE_STOPPING, } srpc_state_t; -struct smoketest_rpc { +static struct smoketest_rpc { spinlock_t rpc_glock; /* global lock */ srpc_service_t *rpc_services[SRPC_SERVICE_MAX_ID + 1]; lnet_handle_eq_t rpc_lnet_eq; /* _the_ LNet event queue */ |