From: Jens Axboe Date: Tue, 8 Dec 2015 19:51:23 +0000 (-0700) Subject: iolog: fix build with zlib not being installed X-Git-Tag: fio-2.2.13~18 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=f2e45b41a2959c58ac1e9e9d20f046e033dc8ade iolog: fix build with zlib not being installed backend.o: In function `thread_main': /home/axboe/git/fio/backend.c:1553: undefined reference to `iolog_compress_init' /home/axboe/git/fio/backend.c:1656: undefined reference to `iolog_compress_exit' collect2: error: ld returned 1 exit status make: *** [fio] Error 1 Provide dummy init/exit functions. Signed-off-by: Jens Axboe --- diff --git a/iolog.c b/iolog.c index 0d4d26a5..24e3f10f 100644 --- a/iolog.c +++ b/iolog.c @@ -1316,3 +1316,12 @@ 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) +{ +}