Skip to content

Commit 7bd03e3

Browse files
mwajdeczLucas De Marchi
authored andcommitted
drm/xe/tests: Fix build break on clang 16.0.6
The following error was reported when building with clang 16.0.6: In file included from drivers/gpu/drm/xe/xe_pci.c:1104: >> drivers/gpu/drm/xe/tests/xe_pci.c:214:2: error: initializer \ element is not a compile-time constant graphics_ip_xelp, ^~~~~~~~~~~~~~~~ drivers/gpu/drm/xe/tests/xe_pci.c:221:2: error: initializer \ element is not a compile-time constant media_ip_xem, ^~~~~~~~~~~~ 2 errors generated. Fix that by explicit re-definition of pre-GMDID IPs, as there are not so many of them. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202509192041.tQwdE4DS-lkp@intel.com/ Fixes: 5bb5258 ("drm/xe/tests: Add pre-GMDID IP descriptors to param generators") Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Cc: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20250922101207.192028-1-michal.wajdeczko@intel.com (cherry picked from commit 2de80e2) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
1 parent b2ec5ca commit 7bd03e3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/gpu/drm/xe/tests/xe_pci.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,15 @@ static void xe_ip_kunit_desc(const struct xe_ip *param, char *desc)
211211
* param generator can be used for both
212212
*/
213213
static const struct xe_ip pre_gmdid_graphics_ips[] = {
214-
graphics_ip_xelp,
215-
graphics_ip_xelpp,
216-
graphics_ip_xehpg,
217-
graphics_ip_xehpc,
214+
{ 1200, "Xe_LP", &graphics_xelp },
215+
{ 1210, "Xe_LP+", &graphics_xelp },
216+
{ 1255, "Xe_HPG", &graphics_xehpg },
217+
{ 1260, "Xe_HPC", &graphics_xehpc },
218218
};
219219

220220
static const struct xe_ip pre_gmdid_media_ips[] = {
221-
media_ip_xem,
222-
media_ip_xehpm,
221+
{ 1200, "Xe_M", &media_xem },
222+
{ 1255, "Xe_HPM", &media_xem },
223223
};
224224

225225
KUNIT_ARRAY_PARAM(pre_gmdid_graphics_ip, pre_gmdid_graphics_ips, xe_ip_kunit_desc);

0 commit comments

Comments
 (0)