From: Jens Axboe Date: Fri, 19 Dec 2014 22:04:10 +0000 (-0700) Subject: gettime: hide fio_gtod_cpumask if not used X-Git-Tag: fio-2.2.2~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8a2b393b00dc4b6a8ba129a0e7850a78114ac75e gettime: hide fio_gtod_cpumask if not used Signed-off-by: Jens Axboe --- 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) {