diff options
| author | Mikita Lipski <[email protected]> | 2020-01-13 13:15:19 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-01-14 15:16:43 +0000 |
| commit | 1fc636c9b3b251d065dbf04eb2293fb6de9fdcf9 (patch) | |
| tree | ebe8b0acf2be5ee2c343f7c40c282e0e8e4f71fa | |
| parent | Merge tag 'amd-drm-next-5.6-2020-01-10-dp-mst-dsc' of git://people.freedeskto... (diff) | |
| download | kernel-1fc636c9b3b251d065dbf04eb2293fb6de9fdcf9.tar.gz kernel-1fc636c9b3b251d065dbf04eb2293fb6de9fdcf9.zip | |
drm/amdgpu/display: Use u64 divide macro for round up division
[why]
Fix compilation warnings on i386 architecture:
undefined reference to `__udivdi3'
[how]
Switch DIV_ROUND_UP to DIV64_U64_ROUND_UP
Reported-by: Randy Dunlap <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Mikita Lipski <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c index 52fb207393ef..96b391e4b3e7 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c @@ -534,7 +534,7 @@ static int kbps_to_peak_pbn(int kbps) peak_kbps *= 1006; peak_kbps = div_u64(peak_kbps, 1000); - return (int) DIV_ROUND_UP(peak_kbps * 64, (54 * 8 * 1000)); + return (int) DIV64_U64_ROUND_UP(peak_kbps * 64, (54 * 8 * 1000)); } static void set_dsc_configs_from_fairness_vars(struct dsc_mst_fairness_params *params, |
