linux/drivers/gpu/drm/amd/display/dc/dce
yanglinlin 54d4dee9f8 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>
(cherry picked from commit 0421fc6ab3)
Cc: stable@vger.kernel.org
2026-07-17 17:39:36 -04:00
..
dce_abm.c drm/amd/display: Fixed Silence complier warnings in dc 2026-03-30 15:12:15 -04:00
dce_abm.h drm/amd/display: Enable dcn42 DC 2026-02-23 14:28:33 -05:00
dce_audio.c drm/amd/display: Add support for FRL to DC core 2026-06-03 13:44:46 -04:00
dce_audio.h drm/amd/display: Use dce_audio_create for DCE 6 2026-02-23 14:24:39 -05:00
dce_aux.c drm/amd/display: Add no_native_i2c codepath 2026-06-03 13:43:29 -04:00
dce_aux.h drm/amd/display: Add no_native_i2c codepath 2026-06-03 13:43:29 -04:00
dce_clock_source.c drm/amd/display: fix __udivdi3 link error 2026-07-17 17:39:36 -04:00
dce_clock_source.h drm/amd/display: Fix DP_PIXEL_FORMAT fields & update clk_src for DCN4x 2026-06-03 13:39:58 -04:00
dce_dmcu.c drm/amd/display: Fixed Silence complier warnings in dc 2026-03-30 15:12:15 -04:00
dce_dmcu.h drm/amd/display: Add Freesync HDMI support to DMCU 2021-02-02 12:11:41 -05:00
dce_i2c_hw.c drm/amd/display: Fix implicit narrowing conversion warnings 2026-04-17 15:41:15 -04:00
dce_i2c_hw.h drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
dce_i2c_sw.c drm/amd/display: Fix narrowing boundaries and eDP parser assignment 2026-04-17 15:41:16 -04:00
dce_i2c_sw.h
dce_i2c.c drm/amd/display: Fixed Silence complier warnings in dc 2026-03-30 15:12:15 -04:00
dce_i2c.h drm/amd/display: Add I2C escape to support query device exist. 2022-03-15 14:41:03 -04:00
dce_ipp.c drm/amd/display: Fix type mismatches using guards and explicit casts 2026-05-05 09:56:52 -04:00
dce_ipp.h drm/amd/display: dce_ipp: add DCE6 specific macros,functions 2020-07-27 16:46:20 -04:00
dce_link_encoder.c drm/amd/display: Fix type mismatches using guards and explicit casts 2026-05-05 09:56:52 -04:00
dce_link_encoder.h drm/amd/display: Remove unneeded DAC link encoder register 2026-02-19 12:16:12 -05:00
dce_mem_input.c drm/amd/display: Fixed Silence complier warnings in dc 2026-03-30 15:12:15 -04:00
dce_mem_input.h drm/amd/display: Add missing SFB and OPP_SF 2024-04-09 22:06:34 -04:00
dce_opp.c drm/amd/display: Fixed Silence complier warnings in dc 2026-03-30 15:12:15 -04:00
dce_opp.h drm/amd/display: Add missing SFB and OPP_SF 2024-04-09 22:06:34 -04:00
dce_panel_cntl.c drm/amd/display: Fix implicit narrowing conversion warnings 2026-04-17 15:41:15 -04:00
dce_panel_cntl.h drm/amd/display: Bug in dce_is_panel_backlight_on() 2020-09-22 12:27:35 -04:00
dce_scl_filters_old.c
dce_scl_filters.c
dce_stream_encoder.c drm/amd/display: set MSA MISC1 bit 6 when using VSC SDP for DCE 11.x 2026-07-01 12:58:21 -04:00
dce_stream_encoder.h drm/amd/display: set MSA MISC1 bit 6 when using VSC SDP for DCE 11.x 2026-07-01 12:58:21 -04:00
dce_transform.c drm/amd/display: add missing CSC entries for BT.2020 for DCE IPs 2026-06-03 13:31:32 -04:00
dce_transform.h drm/amd/display: Properly disable scaling on DCE6 2025-10-07 14:09:06 -04:00
dmub_abm_lcd.c drm/amd/display: Fix type mismatches using guards and explicit casts 2026-05-05 09:56:52 -04:00
dmub_abm_lcd.h drm/amd/display: Add params of set_abm_event for VB Scaling 2024-06-05 11:05:24 -04:00
dmub_abm.c drm/amd/display: Fixed Silence complier warnings in dc 2026-03-30 15:12:15 -04:00
dmub_abm.h
dmub_hw_lock_mgr.c drm/amd/display: Fixed silence signed/unsigned mismatch warnings 2026-03-30 14:55:39 -04:00
dmub_hw_lock_mgr.h drm/amd/display: Sync dcn42 with DC 3.2.373 2026-03-11 13:58:07 -04:00
dmub_outbox.c drm/amd/display: Wake DMCUB before sending a command 2023-12-19 14:59:02 -05:00
dmub_outbox.h drm/amd/display: Fix for dmub outbox notification enable 2022-02-16 17:01:42 -05:00
dmub_psr.c drm/amd/display: Fix implicit narrowing conversion warnings 2026-04-17 15:41:15 -04:00
dmub_psr.h drm/amd/display: Extend PSRSU residency mode 2024-06-14 15:20:40 -04:00
dmub_replay.c drm/amd/display: Fix implicit narrowing conversion warnings 2026-04-17 15:41:15 -04:00
dmub_replay.h drm/amd/display: To support Replay frame skip mode 2025-11-11 21:54:15 -05:00
Makefile drm/amd/display: Refactor HWSS into component folder 2023-10-09 17:00:09 -04:00