From 5c32c41f657d875114a7c25b8c9da4a089da7f4a Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 29 Nov 2023 04:13:26 +0100 Subject: [PATCH] intel: make CLOCK_TAI optional for non-Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/intel/common/xe/intel_gem.c:72:9: error: use of undeclared identifier 'CLOCK_TAI' case CLOCK_TAI: ^ Fixes: ae0df368a80d ("intel/common: Add intel_gem_read_correlate_cpu_gpu_timestamp()") Reviewed-by: Tapani Pälli Part-of: --- src/intel/common/xe/intel_gem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/common/xe/intel_gem.c b/src/intel/common/xe/intel_gem.c index dfe061ea9bb..f19d8ebc83d 100644 --- a/src/intel/common/xe/intel_gem.c +++ b/src/intel/common/xe/intel_gem.c @@ -69,7 +69,9 @@ xe_gem_read_correlate_cpu_gpu_timestamp(int fd, #endif case CLOCK_REALTIME: case CLOCK_BOOTTIME: +#ifdef CLOCK_TAI case CLOCK_TAI: +#endif break; default: return false;