iolog: fix build with zlib not being installed
authorJens Axboe <axboe@fb.com>
Tue, 8 Dec 2015 19:51:23 +0000 (12:51 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 8 Dec 2015 19:51:23 +0000 (12:51 -0700)
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 <axboe@fb.com>
iolog.c

diff --git a/iolog.c b/iolog.c
index 0d4d26a599ab6c493af2efdd9096e087c8963d2b..24e3f10feb37ab402bd7e2c70b2fcb81d86d637a 100644 (file)
--- 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)
+{
+}