Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <rdunlap@infradead.org>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mikita Lipski and committed by
Alex Deucher
1fc636c9 688486a4

+1 -1
+1 -1
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
··· 534 534 535 535 peak_kbps *= 1006; 536 536 peak_kbps = div_u64(peak_kbps, 1000); 537 - return (int) DIV_ROUND_UP(peak_kbps * 64, (54 * 8 * 1000)); 537 + return (int) DIV64_U64_ROUND_UP(peak_kbps * 64, (54 * 8 * 1000)); 538 538 } 539 539 540 540 static void set_dsc_configs_from_fairness_vars(struct dsc_mst_fairness_params *params,