mirror_ubuntu-kernels/drivers/gpu/drm/amd/display
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
..
amdgpu_dm drm/amd/display: Explicitly call ->reset for each object 2017-11-02 13:02:38 -04:00
dc drm/amdgpu/display: fix integer arithmetic problem 2017-11-02 13:44:41 -04:00
include drm/amd/display: add performance trace macro to dc 2017-10-21 16:50:00 -04:00
modules drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
Kconfig drm/amd/display: make FBC configurable option 2017-10-21 16:46:05 -04:00
Makefile
TODO drm/amd/display: DC I2C review 2017-09-28 16:47:09 -04:00