Fix compile warning for !zlib
authorJens Axboe <axboe@fb.com>
Thu, 17 Dec 2015 21:53:45 +0000 (14:53 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 17 Dec 2015 21:53:45 +0000 (14:53 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c

index 33cc6fe6c47a69fd21f786e7d1e904f5acd1c25b..45726aa93754a1e5ad029ae0c48ad0b7f302208a 100644 (file)
--- 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)