OSDN Git Service

drm/amdgpu: fix enum odm_combine_mode mismatch
authorArnd Bergmann <arnd@arndb.de>
Mon, 6 Feb 2023 19:36:02 +0000 (20:36 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Feb 2023 22:35:55 +0000 (17:35 -0500)
commit087bad7eb1f6945f8232f132953ecc2bda8bd38d
tree046d53ab3f127c2675e37f7d43666c91893cb6e2
parent93b1a791c0a09311b61c0f7ed8c5332f7bff3f38
drm/amdgpu: fix enum odm_combine_mode mismatch

A conversion from 'bool' to 'enum odm_combine_mode' was incomplete,
and gcc warns about this with many instances of

display/dc/dml/dcn20/display_mode_vba_20.c:3899:44: warning: implicit conversion from 'enum <anonymous>' to 'enum
odm_combine_mode' [-Wenum-conversion]
 3899 |     locals->ODMCombineEnablePerState[i][k] = false;

Change the ones that we get a warning for, using the same numerical
values to leave the behavior unchanged.

Fixes: 5fc11598166d ("drm/amd/display: expand dml structs")
Link: https://lore.kernel.org/all/20201026210039.3884312-3-arnd@kernel.org/
Link: https://lore.kernel.org/all/20210927100659.1431744-1-arnd@kernel.org/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c