aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorDavid Gow <[email protected]>2022-08-11 20:43:26 +0000
committerAlex Deucher <[email protected]>2022-08-16 22:17:31 +0000
commit6ae0632d17759852c07e2d1e0a31c728eb6ba246 (patch)
treec21f4cdc4db24307142714a629dc04e0bb9009fc /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentdrm/amd/display: Unneeded semicolon (diff)
downloadkernel-6ae0632d17759852c07e2d1e0a31c728eb6ba246.tar.gz
kernel-6ae0632d17759852c07e2d1e0a31c728eb6ba246.zip
drm/amd/display: fix overflow on MIN_I64 definition
The definition of MIN_I64 in bw_fixed.c can cause gcc to whinge about integer overflow, because it is treated as a positive value, which is then negated. The temporary positive value is not necessarily representable. This causes the following warning: ../drivers/gpu/drm/amd/amdgpu/../display/dc/dml/calcs/bw_fixed.c:30:19: warning: integer overflow in expression ‘-9223372036854775808’ of type ‘long long int’ results in ‘-9223372036854775808’ [-Woverflow] 30 | (int64_t)(-(1LL << 63)) | ^ Writing out (-MAX_I64 - 1) works instead. Signed-off-by: David Gow <[email protected]> Signed-off-by: Tales Aparecida <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions