From 52618a2a3565950a412739354be222f23e4fcdc5 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 8 Dec 2015 13:04:59 -0700 Subject: [PATCH 1/1] iolog: fix potential duplicate definition of compress init/exit Move the code inside the #else part of the zlib check. Signed-off-by: Jens Axboe --- iolog.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/iolog.c b/iolog.c index 24e3f10f..961c9171 100644 --- a/iolog.c +++ b/iolog.c @@ -1194,6 +1194,15 @@ int iolog_flush(struct io_log *log, int wait) 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) @@ -1316,12 +1325,3 @@ void fio_writeout_logs(struct thread_data *td) td_restore_runstate(td, old_state); } - -int iolog_compress_init(struct thread_data *td) -{ - return 0; -} - -void iolog_compress_exit(struct thread_data *td) -{ -} -- 2.25.1