linux/drivers/gpu/drm/amd/display/dc/dcn10
Gaghik Khachatrian 64b4c4cdfd drm/amd/display: Fix type mismatches using guards and explicit casts
[Why]
Address signed/unsigned comparison warnings across dc paths to keep
builds warning-clean and improve type safety at comparison boundaries.
Most warnings came from signed loop/index temporaries compared against
unsigned counters and table sizes, plus a smaller number of mixed
signed/unsigned clock, bandwidth, and geometry comparisons.

[How]
Aligned iterator and temporary variable types with the semantic type
of the compared bounds. Used unsigned indices for loops bounded by unsigned
counters and table sizes, while retaining signed types where values are
semantically signed or participate in arithmetic that may legitimately go
negative. Where mixed signed/unsigned comparisons are intentional, applied
explicit boundary casts or guarded comparisons instead of broad type
changes.

No functional behavior changes are intended; this is a warning-resolution
and type-alignment cleanup.

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>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2026-05-05 09:56:52 -04:00
..
dcn10_cm_common.c drm/amd/display: Fix type mismatches using guards and explicit casts 2026-05-05 09:56:52 -04:00
dcn10_cm_common.h drm/amd/display: Add dpp_get_gamut_remap functions 2024-01-22 17:13:26 -05:00
dcn10_dwb.c drm/amd/display: Fixed Silence complier warnings in dc 2026-03-30 15:12:15 -04:00
dcn10_dwb.h drm/amd/display: Drop unnecessary DCN guards 2023-03-07 14:22:40 -05:00
dcn10_hw_sequencer_debug.c drm/amd/display: Fix type mismatches using guards and explicit casts 2026-05-05 09:56:52 -04:00
dcn10_hw_sequencer_debug.h drm/amd/display: cleanup of function pointer tables 2019-11-19 10:12:53 -05:00
dcn10_ipp.c drm/amd/display: Move all linux includes into OS types 2022-07-05 16:16:49 -04:00
dcn10_ipp.h drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
Makefile drm/amd/display: Refactoring MPC 2024-07-23 17:07:11 -04:00