linux/drivers/gpu/drm/amd
Arnd Bergmann 1f3493faa8 drm/amdgpu/display: fix integer arithmetic problem
gcc warns about an ambiguous integer calculation:

drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function 'calculate_bandwidth':
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:534:5: error: this decimal constant is unsigned only in ISO C90 [-Werror]
     data->lb_line_pitch = bw_ceil2(bw_mul(bw_div(bw_frc_to_fixed(2401171875, 100000000), bw_int_to_fixed(3)), bw_ceil2(data->source_width_in_lb, bw_int_to_fixed(8))), bw_int_to_fixed(48));
     ^~~~

Marking the constant as explicitly unsigned makes it work fine everywhere
without warnings.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-11-02 13:44:41 -04:00
..
acp drm: amd: remove broken include path 2017-03-14 19:19:44 -04:00
amdgpu Merge remote-tracking branch 'pfdo/drm-next' into drm-next 2017-10-17 10:53:43 +10:00
amdkfd Linux 4.14-rc3 2017-10-03 09:35:04 +10:00
display drm/amdgpu/display: fix integer arithmetic problem 2017-11-02 13:44:41 -04:00
include drm/amd: Add DCE12 resource strap registers 2017-11-02 13:05:04 -04:00
lib drm/amd/chash: Fix typo 2017-09-28 16:03:29 -04:00
powerplay drm/amd/powerplay: fix mclk can't switch on Tonga 2017-10-06 17:43:51 -04:00
scheduler drm/amd/sched: fix deadlock caused by unsignaled fences of deleted jobs 2017-10-06 17:44:32 -04:00