linux/drivers/gpu/drm/amd/display/dc/dcn20
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
..
dcn20_dwb_scl.c drm/amd/display: Fix type mismatches using guards and explicit casts 2026-05-05 09:56:52 -04:00
dcn20_dwb.c drm/amd/display: Add WBSCL ram coefficient for writeback 2024-04-09 22:06:53 -04:00
dcn20_dwb.h drm/amd/display: rework macros for DWB register access 2022-11-15 13:35:15 -05:00
dcn20_vmid.c drm/amd/display: switch DC over to the new DRM logging macros 2023-09-26 17:00:21 -04:00
dcn20_vmid.h drm/amd/display: rework macros for DWB register access 2022-11-15 13:35:15 -05:00
Makefile drm/amd/display: Refactoring MPC 2024-07-23 17:07:11 -04:00