drm/amd/display: fix compilation error due to shifting negative value
authorGONG, Ruiqi <gongruiqi@huaweicloud.com>
Fri, 2 Jun 2023 10:12:33 +0000 (18:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:38:19 +0000 (12:38 -0400)
commit2890662822def3dcc1b2e690d6fcea694c666083
tree3d9989066baf462d85c4aa8ef5d0e4bdbb875c39
parent5be7d4e3cf9ef9853934daa03cf573723bae1650
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>
drivers/gpu/drm/amd/display/include/fixed31_32.h