From: Jens Axboe Date: Thu, 17 Dec 2015 21:53:45 +0000 (-0700) Subject: Fix compile warning for !zlib X-Git-Tag: fio-2.3~19 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=105157adcd10c6b1a2629b9712d00c061f027cae Fix compile warning for !zlib Signed-off-by: Jens Axboe --- diff --git a/options.c b/options.c index 33cc6fe6..45726aa9 100644 --- a/options.c +++ b/options.c @@ -536,6 +536,7 @@ static int str_verify_cpus_allowed_cb(void *data, const char *input) return set_cpus_allowed(td, &td->o.verify_cpumask, input); } +#ifdef CONFIG_ZLIB static int str_log_cpus_allowed_cb(void *data, const char *input) { struct thread_data *td = data; @@ -545,8 +546,9 @@ static int str_log_cpus_allowed_cb(void *data, const char *input) return set_cpus_allowed(td, &td->o.log_gz_cpumask, input); } +#endif /* CONFIG_ZLIB */ -#endif +#endif /* FIO_HAVE_CPU_AFFINITY */ #ifdef CONFIG_LIBNUMA static int str_numa_cpunodes_cb(void *data, char *input)