From: Jens Axboe Date: Tue, 8 Dec 2015 20:04:59 +0000 (-0700) Subject: iolog: fix potential duplicate definition of compress init/exit X-Git-Tag: fio-2.2.13~17 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=52618a2a3565950a412739354be222f23e4fcdc5;hp=f2e45b41a2959c58ac1e9e9d20f046e033dc8ade 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 --- 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) -{ -}