Skip to content

Commit

Permalink
drm/xe: Add XE_ENGINE_CLASS_OTHER to str conversion
Browse files Browse the repository at this point in the history
XE_ENGINE_CLASS_OTHER was missing from the str conversion. Add it and
remove the default handling so it's protected by -Wswitch.
Currently the only user is xe_hw_engine_class_sysfs_init(), which
already skips XE_ENGINE_CLASS_OTHER, so there's no change in behavior.

Reviewed-by: Nirmoy Das <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
  • Loading branch information
lucasdemarchi committed May 21, 2024
1 parent ab68951 commit bd49e50
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/gpu/drm/xe/xe_hw_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,9 +1111,13 @@ const char *xe_hw_engine_class_to_str(enum xe_engine_class class)
return "vecs";
case XE_ENGINE_CLASS_COPY:
return "bcs";
case XE_ENGINE_CLASS_OTHER:
return "other";
case XE_ENGINE_CLASS_COMPUTE:
return "ccs";
default:
return NULL;
case XE_ENGINE_CLASS_MAX:
break;
}

return NULL;
}

0 comments on commit bd49e50

Please sign in to comment.