From 15433897b2c1f14ea6855cfc763bcc61c25528ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Mon, 12 Jun 2023 21:26:38 +0300 Subject: [PATCH] intel/dev: add parentheses around intel_needs_workaround macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tapani Pälli Reviewed-by: Nanley Chery Part-of: --- src/intel/dev/intel_device_info.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/dev/intel_device_info.h b/src/intel/dev/intel_device_info.h index e9969f09ede..2b0fe4e6372 100644 --- a/src/intel/dev/intel_device_info.h +++ b/src/intel/dev/intel_device_info.h @@ -583,8 +583,8 @@ void intel_device_info_update_after_hwconfig(struct intel_device_info *devinfo); #ifdef GFX_VERx10 #define intel_needs_workaround(devinfo, id) \ - INTEL_WA_ ## id ## _GFX_VER && \ - BITSET_TEST(devinfo->workarounds, INTEL_WA_##id) + (INTEL_WA_ ## id ## _GFX_VER && \ + BITSET_TEST(devinfo->workarounds, INTEL_WA_##id)) #else #define intel_needs_workaround(devinfo, id) \ BITSET_TEST(devinfo->workarounds, INTEL_WA_##id)