iolog: fix potential duplicate definition of compress init/exit
[fio.git] / iolog.c
diff --git a/iolog.c b/iolog.c
index 24e3f10feb37ab402bd7e2c70b2fcb81d86d637a..961c9171f72f21654f17cc84f7ef07c8683b7991 100644 (file)
--- a/iolog.c
+++ b/iolog.c
@@ -1194,6 +1194,15 @@ int iolog_flush(struct io_log *log, int wait)
        return 1;
 }
 
        return 1;
 }
 
+int iolog_compress_init(struct thread_data *td)
+{
+       return 0;
+}
+
+void iolog_compress_exit(struct thread_data *td)
+{
+}
+
 #endif
 
 static int write_iops_log(struct thread_data *td, int try)
 #endif
 
 static int write_iops_log(struct thread_data *td, int try)
@@ -1316,12 +1325,3 @@ void fio_writeout_logs(struct thread_data *td)
 
        td_restore_runstate(td, old_state);
 }
 
        td_restore_runstate(td, old_state);
 }
-
-int iolog_compress_init(struct thread_data *td)
-{
-       return 0;
-}
-
-void iolog_compress_exit(struct thread_data *td)
-{
-}