diff options
| author | Gaghik Khachatrian <gaghik.khachatrian@amd.com> | 2026-04-26 23:22:34 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-05-11 23:10:26 +0300 |
| commit | 12b3bda41a9aa240b164e6cc882df49dce187ec9 (patch) | |
| tree | 196f0ac14b4348a532e50ca832f834c58ecb855e /include | |
| parent | 55a79e4889bd62a7138d7bc3b9d70e1cfda2574b (diff) | |
| download | linux-12b3bda41a9aa240b164e6cc882df49dce187ec9.tar.xz | |
drm/amd/display: Fix compiler warnings in dml2
[Why & How]
In dml2_translation_helper.c, rename the inner loop index inside
dml2_init_soc_states() for several project cases
to avoid shadowing the outer function-scope index variable.
In display_mode_core.c, replace shift-based power-of-two expressions
used to compute dpte_row_height and dpte_row_height_linear with an
equivalent floating-point power function, consistent with existing
usage elsewhere in the file.
Behavior for valid inputs is preserved in both cases.
Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: James Lin <pinglei.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
