summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authoryanglinlin <yanglinlin@kylinos.cn>2026-07-13 11:12:28 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-07-15 09:15:41 -0400
commit0421fc6ab3a8514e99156ff3c2cee13ee9af3fa7 (patch)
treecbedb160267bb052715b5fc3c25b7a7532eb332d /tools/perf/scripts/python
parent4e2c0821509fed754e8c31d5053d152fbb3484a5 (diff)
drm/amd/display: fix __udivdi3 link error
When compiling the AMDGPU display driver for 32-bit architectures, the linker reports undefined reference to `__udivdi3` in functions get_dp_dto_frequency_100hz() and dcn401_get_dp_dto_frequency_100hz(). This is because the code uses 64-bit division (/) on 32-bit systems, which GCC cannot handle directly and instead tries to call the missing __udivdi3 helper function. Replace the raw division with div_u64(), the kernel's standard 64-bit division helper, to avoid the link error. Signed-off-by: Linlin Yang <yanglinlin@kylinos.cn> Reported-by: k2ci <kernel-bot@kylinos.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions