diff options
author | GONG, Ruiqi <gongruiqi@huaweicloud.com> | 2023-06-02 18:12:33 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 12:38:19 -0400 |
commit | 2890662822def3dcc1b2e690d6fcea694c666083 (patch) | |
tree | 3d9989066baf462d85c4aa8ef5d0e4bdbb875c39 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 5be7d4e3cf9ef9853934daa03cf573723bae1650 (diff) |
drm/amd/display: fix compilation error due to shifting negative value
Currently compiling linux-next with allmodconfig triggers the following
error:
./drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h: In function ‘dc_fixpt_truncate’:
./drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:528:22: error: left shift of negative value [-Werror=shift-negative-value]
528 | arg.value &= (~0LL) << (FIXED31_32_BITS_PER_FRACTIONAL_PART - frac_bits);
| ^~
Use `unsigned long long` instead.
Signed-off-by: GONG, Ruiqi <gongruiqi@huaweicloud.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions