]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Export xe_step_name for kunit tests
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 1 Jul 2025 20:13:23 +0000 (13:13 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 2 Jul 2025 23:08:54 +0000 (16:08 -0700)
commit0fc957c20df343f82d4c3b934bcb21cc51dd49b0
tree468326152f804de575dc908c36aee395fbd86e6d
parent67979060740f7f978c8cb580ccea6c91154150f9
drm/xe: Export xe_step_name for kunit tests

xe_step_name() is used by xe_assert(), so adding assertions to functions
like xe_device_get_gt() will result in

  ERROR: modpost: "xe_step_name" [drivers/gpu/drm/xe/tests/xe_test.ko] undefined!

while building the kunit tests.  Export xe_step_name to avoid these
build failures when adding assertions.

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250701201320.2514369-11-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_step.c