From: Jens Axboe Date: Fri, 19 Mar 2010 18:17:15 +0000 (+0100) Subject: Only define str_sfr_cb() if FIO_HAVE_SYNC_FILE_RANGE is set X-Git-Tag: fio-1.38~3 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=3ae0637148904b5c68cb95e749460e37e3502a9c;ds=sidebyside Only define str_sfr_cb() if FIO_HAVE_SYNC_FILE_RANGE is set Signed-off-by: Jens Axboe --- diff --git a/options.c b/options.c index dda7cba1..40f60ff3 100644 --- a/options.c +++ b/options.c @@ -429,6 +429,7 @@ static int str_fst_cb(void *data, const char *str) return 0; } +#ifdef FIO_HAVE_SYNC_FILE_RANGE static int str_sfr_cb(void *data, const char *str) { struct thread_data *td = data; @@ -442,6 +443,7 @@ static int str_sfr_cb(void *data, const char *str) return 0; } +#endif static int check_dir(struct thread_data *td, char *fname) {