From 105157adcd10c6b1a2629b9712d00c061f027cae Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 17 Dec 2015 14:53:45 -0700 Subject: [PATCH] Fix compile warning for !zlib Signed-off-by: Jens Axboe --- options.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.25.1