]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: selftest: fix "not declared" by declaring static
authorJeremiah Mahler <jmmahler@gmail.com>
Sat, 27 Dec 2014 20:46:47 +0000 (12:46 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 23:52:58 +0000 (15:52 -0800)
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>
drivers/staging/lustre/lnet/selftest/framework.c
drivers/staging/lustre/lnet/selftest/rpc.c
drivers/staging/lustre/lnet/selftest/timer.c

index cc9d1826ae66fd62f436aa8c91c4205b4bfa00cf..56b4ef4a5592356edc7b4d996f855866bd5ecc83 100644 (file)
@@ -103,7 +103,7 @@ do {                                    \
 #define sfw_test_active(t)      (atomic_read(&(t)->tsi_nactive) != 0)
 #define sfw_batch_active(b)     (atomic_read(&(b)->bat_nactive) != 0)
 
-struct smoketest_framework {
+static struct smoketest_framework {
        struct list_head         fw_zombie_rpcs;     /* RPCs to be recycled */
        struct list_head         fw_zombie_sessions; /* stopping sessions */
        struct list_head         fw_tests;         /* registered test cases */
index b602077c8bb51938e1a6e66fd0403b53a50600bc..bb6aa2ea136b5d2c944f956916879dbaf0f42135 100644 (file)
@@ -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 */
index f8352c2a7d37c67c350d64518afdd343a45d79c4..441f9472a834c698c093ea270dc9e95171655e97 100644 (file)
@@ -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;