From 8a2b393b00dc4b6a8ba129a0e7850a78114ac75e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 19 Dec 2014 15:04:10 -0700 Subject: [PATCH] gettime: hide fio_gtod_cpumask if not used Signed-off-by: Jens Axboe --- gettime-thread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gettime-thread.c b/gettime-thread.c index 65ca8341..2dc976fb 100644 --- a/gettime-thread.c +++ b/gettime-thread.c @@ -8,8 +8,10 @@ struct timeval *fio_tv = NULL; int fio_gtod_offload = 0; -static os_cpu_mask_t fio_gtod_cpumask; static pthread_t gtod_thread; +#ifdef FIO_HAVE_CPU_AFFINITY +static os_cpu_mask_t fio_gtod_cpumask; +#endif void fio_gtod_init(void) { -- 2.25.1