drm/amd/display: Add a default case for dc_status_to_str
authorIvan Lipski <ivan.lipski@amd.com>
Wed, 27 May 2026 18:57:17 +0000 (14:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 May 2026 20:21:42 +0000 (16:21 -0400)
commit470d1ae31d29f90b8998c5c08ee0b267a05fe378
treee7574040a3056721604edb55510e8f7871f12915
parent989bdec8ca04a4f4855981a68ad295dcc257291f
drm/amd/display: Add a default case for dc_status_to_str

[Why&How]
If a parsed dc_status case is not covered by the dc_status_to_str, the
switch case is skipped, and the function returns
"Unexpected status error".

This causes build failures when new dc_status enums are introduced.
Changing the 'return "Unexpected status error"' into default resolves it.

Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_debug.c