[PATCH 2/4] drm/xe/kunit: Export xe_step_name for KUNIT
Michal Wajdeczko
michal.wajdeczko at intel.com
Fri Feb 21 19:00:36 UTC 2025
We use xe_step_name() inside the xe_assert() that in turn could
be used in our kunit test modules so it must be exported.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
---
drivers/gpu/drm/xe/xe_step.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_step.c b/drivers/gpu/drm/xe/xe_step.c
index c77b5c317fa0..db600cc9c5f2 100644
--- a/drivers/gpu/drm/xe/xe_step.c
+++ b/drivers/gpu/drm/xe/xe_step.c
@@ -6,6 +6,7 @@
#include "xe_step.h"
#include <linux/bitfield.h>
+#include <kunit/visibility.h>
#include "xe_device.h"
#include "xe_platform_types.h"
@@ -255,3 +256,4 @@ const char *xe_step_name(enum xe_step step)
return "**";
}
}
+EXPORT_SYMBOL_IF_KUNIT(xe_step_name);
--
2.47.1
More information about the Intel-xe
mailing list