Re: [PATCH] drm/amd/display: Avoid enum conversion warning

2024-01-15 Thread Alex Deucher
Applied. Thanks! On Wed, Jan 10, 2024 at 3:56 PM Nathan Chancellor wrote: > > Clang warns (or errors with CONFIG_WERROR=y) when performing arithmetic > with different enumerated types, which is usually a bug: > > > drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_dpia_bw.c:54

[PATCH] drm/amd/display: Avoid enum conversion warning

2024-01-10 Thread Nathan Chancellor
Clang warns (or errors with CONFIG_WERROR=y) when performing arithmetic with different enumerated types, which is usually a bug: drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_dpia_bw.c:548:24: error: arithmetic between different enumeration types ('const enum dc_link_rate'