gfio: fix link error
authorJens Axboe <axboe@fb.com>
Mon, 15 Aug 2016 20:22:31 +0000 (14:22 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 15 Aug 2016 20:22:31 +0000 (14:22 -0600)
Fixes: a89ba4b12939 ("Fixup correct sparse warnings")
Signed-off-by: Jens Axboe <axboe@fb.com>
client.c
client.h
gclient.c

index 228a0dbf9a775d6c251d9d3deec20961291e3dac..d502a4b34d4c57a060d96f3c24d4436f4a0bf9bb 100644 (file)
--- a/client.c
+++ b/client.c
@@ -55,9 +55,9 @@ static FLIST_HEAD(eta_list);
 
 static FLIST_HEAD(arg_list);
 
 
 static FLIST_HEAD(arg_list);
 
-static struct thread_stat client_ts;
-static struct group_run_stats client_gs;
-static int sum_stat_clients;
+struct thread_stat client_ts;
+struct group_run_stats client_gs;
+int sum_stat_clients;
 
 static int sum_stat_nr;
 static struct json_object *root = NULL;
 
 static int sum_stat_nr;
 static struct json_object *root = NULL;
index ddacf785d0dfcd0e76aa979bd87f979ff80379b3..c59b89b5730cf2c96a48bf2df56d543dca70bd9c 100644 (file)
--- a/client.h
+++ b/client.h
@@ -145,5 +145,9 @@ enum {
        FIO_CLIENT_TYPE_GUI             = 2,
 };
 
        FIO_CLIENT_TYPE_GUI             = 2,
 };
 
+extern int sum_stat_clients;
+extern struct thread_stat client_ts;
+extern struct group_run_stats client_gs;
+
 #endif
 
 #endif
 
index 9c32474669dbf535e3875757baf29947e752e395..84bb6a4ccbb05534e6bd8d0c90933683b7fac63d 100644 (file)
--- a/gclient.c
+++ b/gclient.c
@@ -280,10 +280,6 @@ static void gfio_disk_util_op(struct fio_client *client, struct fio_net_cmd *cmd
        gdk_threads_leave();
 }
 
        gdk_threads_leave();
 }
 
-extern int sum_stat_clients;
-extern struct thread_stat client_ts;
-extern struct group_run_stats client_gs;
-
 static int sum_stat_nr;
 
 static void gfio_thread_status_op(struct fio_client *client,
 static int sum_stat_nr;
 
 static void gfio_thread_status_op(struct fio_client *client,