diff options
| author | Alex Hung <alex.hung@amd.com> | 2026-08-31 14:12:04 -0600 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-09-10 12:07:35 -0400 |
| commit | 50b9b216d909a3dc4a7b8382ef7de33516aeee76 (patch) | |
| tree | b14db35ddd73d08161d4204f66beb20d25d508e8 /tools/perf/scripts/python | |
| parent | dd601ed4ce28efe8b1452b9323a2c5499060d71b (diff) | |
| download | linux-50b9b216d909a3dc4a7b8382ef7de33516aeee76.tar.gz linux-50b9b216d909a3dc4a7b8382ef7de33516aeee76.zip | |
drm/amd/display: Fix signedness mismatches in cm3
[Why]
In cm3_helper_translate_curve_to_degamma_hw_format(), seg_distr[] and
the loop counter k are uint32_t, while -1, region_start/region_end and
i are signed. Comparing them relies on implicit integer conversions,
which some compilers diagnose and which obscures the intent of the
comparisons.
[How]
Add explicit casts so the signedness of each comparison is stated in
the code. No functional change.
Assisted-by: Copilot:Claude-Opus-5
Reviewed-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
