drm/amd/display: Fix warnings[Why & How]Fix various warnings related to unsigned/signed mismatches- Consistently use the same signedness for a given value- Explcitly cast between types when ne
drm/amd/display: Fix warnings[Why & How]Fix various warnings related to unsigned/signed mismatches- Consistently use the same signedness for a given value- Explcitly cast between types when neededReviewed-by: Dillon Varone <dillon.varone@amd.com>Signed-off-by: Clay King <clayking@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>
show more ...
drm/amd/display: Fix type mismatches using guards and explicit casts[Why]Address signed/unsigned comparison warnings across dc paths to keepbuilds warning-clean and improve type safety at compari
drm/amd/display: Fix type mismatches using guards and explicit casts[Why]Address signed/unsigned comparison warnings across dc paths to keepbuilds warning-clean and improve type safety at comparison boundaries.Most warnings came from signed loop/index temporaries compared againstunsigned counters and table sizes, plus a smaller number of mixedsigned/unsigned clock, bandwidth, and geometry comparisons.[How]Aligned iterator and temporary variable types with the semantic typeof the compared bounds. Used unsigned indices for loops bounded by unsignedcounters and table sizes, while retaining signed types where values aresemantically signed or participate in arithmetic that may legitimately gonegative. Where mixed signed/unsigned comparisons are intentional, appliedexplicit boundary casts or guarded comparisons instead of broad typechanges.No functional behavior changes are intended; this is a warning-resolutionand 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>
drm/amd/display: Clean up unused code[WHAT]Silence warning by cleaning up unused code.Reviewed-by: Dillon Varone <dillon.varone@amd.com>Signed-off-by: Clay King <clayking@amd.com>Signed-off-by
drm/amd/display: Clean up unused code[WHAT]Silence warning by cleaning up unused code.Reviewed-by: Dillon Varone <dillon.varone@amd.com>Signed-off-by: Clay King <clayking@amd.com>Signed-off-by: Alex Hung <alex.hung@amd.com>Tested-by: Dan Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Remove unused mpc1_is_mpcc_idlempc1_is_mpcc_idle() was added in 2017 bycommit feb4a3cd8eb0 ("drm/amd/display: Integrating MPC pseudocode")but never used.Remove it.Signed-off-
drm/amd/display: Remove unused mpc1_is_mpcc_idlempc1_is_mpcc_idle() was added in 2017 bycommit feb4a3cd8eb0 ("drm/amd/display: Integrating MPC pseudocode")but never used.Remove it.Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Refactoring MPC[Why]To refactor MPC files[How]Moved MPC files to respective folders andupdated makefiles appropriately.Reviewed-by: Martin Leung <martin.leung@amd.com>Signe
drm/amd/display: Refactoring MPC[Why]To refactor MPC files[How]Moved MPC files to respective folders andupdated makefiles appropriately.Reviewed-by: Martin Leung <martin.leung@amd.com>Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>Signed-off-by: Mounika Adhuri <moadhuri@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>