]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe: Set the correct type for xe_to_user_engine_class
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Wed, 20 Sep 2023 19:29:22 +0000 (15:29 -0400)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:43:10 +0000 (11:43 -0500)
User engine class is of type u16. Set the same type for the array used to
map xe engines to user engines.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_query.c

index e0c2203e428e17aa0b4963600995bf3def34b541..cbccd5c3dbc8dd9693089539bc6bf3383c0583e5 100644 (file)
@@ -19,7 +19,7 @@
 #include "xe_macros.h"
 #include "xe_ttm_vram_mgr.h"
 
-static const enum xe_engine_class xe_to_user_engine_class[] = {
+static const u16 xe_to_user_engine_class[] = {
        [XE_ENGINE_CLASS_RENDER] = DRM_XE_ENGINE_CLASS_RENDER,
        [XE_ENGINE_CLASS_COPY] = DRM_XE_ENGINE_CLASS_COPY,
        [XE_ENGINE_CLASS_VIDEO_DECODE] = DRM_XE_ENGINE_CLASS_VIDEO_DECODE,