diff options
author | 2024-07-24 08:49:35 -0700 | |
---|---|---|
committer | 2025-02-17 14:09:29 -0500 | |
commit | 196222dccb3e1f3defe85919ae9f00f6f4a3f4c4 (patch) | |
tree | 915dd67633540208157df8ad3387bd5b71dd5dc9 /drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h | |
parent | drm/amdgpu: Generate cper records (diff) | |
download | wireguard-linux-196222dccb3e1f3defe85919ae9f00f6f4a3f4c4.tar.xz wireguard-linux-196222dccb3e1f3defe85919ae9f00f6f4a3f4c4.zip |
drm/amd/display: Reapply 2fde4fdddc1f
Commit 2563391e57b5 ("drm/amd/display: DML2.1 resynchronization") blew
away the compiler warning fix from commit 2fde4fdddc1f
("drm/amd/display: Avoid -Wenum-float-conversion in
add_margin_and_round_to_dfs_grainularity()"), causing the warning to
reappear.
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c:183:58: error: arithmetic between enumeration type 'enum dentist_divider_range' and floating-point type 'double' [-Werror,-Wenum-float-conversion]
183 | divider = (unsigned int)(DFS_DIVIDER_RANGE_SCALE_FACTOR * (vco_freq_khz / clock_khz));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Apply the fix again to resolve the warning.
Fixes: 1b30456150e5 ("drm/amd/display: DML21 Reintegration")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h')
0 files changed, 0 insertions, 0 deletions