[PATCH v2 3/5] drm/xe/kunit: Export xe_step_name for KUNIT

Matt Roper matthew.d.roper at intel.com
Mon Feb 24 22:45:47 UTC 2025


On Mon, Feb 24, 2025 at 04:06:58PM +0100, Michal Wajdeczko wrote:
> 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>

Reviewed-by: Matt Roper <matthew.d.roper 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
> 

-- 
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation


More information about the Intel-xe mailing list