diff options
author | 2018-12-19 14:50:20 -0500 | |
---|---|---|
committer | 2019-01-14 15:04:45 -0500 | |
commit | 32e61361b82e7ad016a83345f66ccc68865f63f4 (patch) | |
tree | 6e0dee55953f51af01b351c32a908edefab48737 /drivers/gpu/drm/amd/amdgpu/tonga_ih.c | |
parent | drm/amd/display: fix compliler errors [-Werror,-Wmissing-braces] (diff) | |
download | wireguard-linux-32e61361b82e7ad016a83345f66ccc68865f63f4.tar.xz wireguard-linux-32e61361b82e7ad016a83345f66ccc68865f63f4.zip |
drm/amd/display: Fix 64-bit division for 32-bit builds
[Why]
32-bit builds break when doing 64-bit division directly.
[How]
Use the div_u64() function instead to perform the division.
Fixes: https://lists.freedesktop.org/archives/dri-devel/2018-December/201008.html
Signed-off-by: Ken Chalmers <ken.chalmers@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/tonga_ih.c')
0 files changed, 0 insertions, 0 deletions