[PATCH v4 27/28] drm/intel/bmg: Allow device ID usage with single-argument macros

Michał Winiarski posted 28 patches 1 month, 1 week ago
There is a newer version of this series
[PATCH v4 27/28] drm/intel/bmg: Allow device ID usage with single-argument macros
Posted by Michał Winiarski 1 month, 1 week ago
When INTEL_BMG_G21_IDS were added as a subplatform, token concatenation
operator usage was omitted, making INTEL_BMG_IDS not usable with
single-argument macros.
Fix that by adding the missing operator.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
---
 include/drm/intel/pciids.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/drm/intel/pciids.h b/include/drm/intel/pciids.h
index b258e79b437ac..52520e684ab19 100644
--- a/include/drm/intel/pciids.h
+++ b/include/drm/intel/pciids.h
@@ -861,7 +861,7 @@
 	MACRO__(0xE216, ## __VA_ARGS__)
 
 #define INTEL_BMG_IDS(MACRO__, ...) \
-	INTEL_BMG_G21_IDS(MACRO__, __VA_ARGS__), \
+	INTEL_BMG_G21_IDS(MACRO__, ## __VA_ARGS__), \
 	MACRO__(0xE220, ## __VA_ARGS__), \
 	MACRO__(0xE221, ## __VA_ARGS__), \
 	MACRO__(0xE222, ## __VA_ARGS__), \
-- 
2.51.2

Re: [PATCH v4 27/28] drm/intel/bmg: Allow device ID usage with single-argument macros
Posted by Lucas De Marchi 1 month, 1 week ago
On Wed, Nov 05, 2025 at 04:10:25PM +0100, Michał Winiarski wrote:
>When INTEL_BMG_G21_IDS were added as a subplatform, token concatenation
>operator usage was omitted, making INTEL_BMG_IDS not usable with
>single-argument macros.
>Fix that by adding the missing operator.
>
>Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>

Fixes: 78de8f876683 ("drm/xe: Handle Wa_22010954014 and Wa_14022085890 as device workarounds")
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>

thanks
Lucas De Marchi