diff options
author | 2024-07-01 10:50:28 +0800 | |
---|---|---|
committer | 2024-07-02 18:04:27 -0400 | |
commit | fcb2f988ef4905ac787fef040a28d0f0f610ad83 (patch) | |
tree | 4d8aaaa73f8f01c95d3dfd60adde16457e3e1f8d /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | drm/amdgpu: rewrite convert_tiling_flags_to_modifier_gfx12 (diff) | |
download | wireguard-linux-fcb2f988ef4905ac787fef040a28d0f0f610ad83.tar.xz wireguard-linux-fcb2f988ef4905ac787fef040a28d0f0f610ad83.zip |
drm/amd/display: Fix unsigned comparison with less than zero
The return value from the call to dml21_find_dc_pipes_for_plane() is int.
However, the return value is being assigned to an unsigned int variable
'num_pipes', the condition if(num_pipes <= 0) is not rigorous enough,
so making 'num_pipes' an int.
./drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c:318:6-15: WARNING: Unsigned expression compared with zero: num_pipes <= 0.
./drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c:360:6-15: WARNING: Unsigned expression compared with zero: num_pipes <= 0.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9454
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions