[PATCH i-g-t 4/4] lib/xe_query: Fix switch indentation

Manszewski, Christoph christoph.manszewski at intel.com
Thu Dec 12 16:40:47 UTC 2024


Hi Dominik,

On 11.12.2024 12:40, Dominik Grzegorzek wrote:
> Correct switch indentation so it follows kernel guidelines.
> 
> Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek at intel.com>

Acked-by: Christoph Manszewski <christoph.manszewski at intel.com>

Thanks,
Christoph

> ---
>   lib/xe/xe_query.c | 26 +++++++++++++-------------
>   1 file changed, 13 insertions(+), 13 deletions(-)
> 
> diff --git a/lib/xe/xe_query.c b/lib/xe/xe_query.c
> index 6a7b08006..b9e6cf045 100644
> --- a/lib/xe/xe_query.c
> +++ b/lib/xe/xe_query.c
> @@ -225,19 +225,19 @@ static uint32_t __mem_default_alignment(struct drm_xe_query_mem_regions *mem_reg
>   const char *xe_engine_class_string(uint32_t engine_class)
>   {
>   	switch (engine_class) {
> -		case DRM_XE_ENGINE_CLASS_RENDER:
> -			return "DRM_XE_ENGINE_CLASS_RENDER";
> -		case DRM_XE_ENGINE_CLASS_COPY:
> -			return "DRM_XE_ENGINE_CLASS_COPY";
> -		case DRM_XE_ENGINE_CLASS_VIDEO_DECODE:
> -			return "DRM_XE_ENGINE_CLASS_VIDEO_DECODE";
> -		case DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE:
> -			return "DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE";
> -		case DRM_XE_ENGINE_CLASS_COMPUTE:
> -			return "DRM_XE_ENGINE_CLASS_COMPUTE";
> -		default:
> -			igt_warn("Engine class 0x%x unknown\n", engine_class);
> -			return "unknown engine class";
> +	case DRM_XE_ENGINE_CLASS_RENDER:
> +		return "DRM_XE_ENGINE_CLASS_RENDER";
> +	case DRM_XE_ENGINE_CLASS_COPY:
> +		return "DRM_XE_ENGINE_CLASS_COPY";
> +	case DRM_XE_ENGINE_CLASS_VIDEO_DECODE:
> +		return "DRM_XE_ENGINE_CLASS_VIDEO_DECODE";
> +	case DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE:
> +		return "DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE";
> +	case DRM_XE_ENGINE_CLASS_COMPUTE:
> +		return "DRM_XE_ENGINE_CLASS_COMPUTE";
> +	default:
> +		igt_warn("Engine class 0x%x unknown\n", engine_class);
> +		return "unknown engine class";
>   	}
>   }
>   


More information about the igt-dev mailing list