]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix __umoddi3 undefined for 32 bit compilation
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Thu, 30 Jun 2022 18:46:18 +0000 (14:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jun 2022 23:34:36 +0000 (19:34 -0400)
commitdbd51d8594bad25f7b7a076e8cf3504975fb4cb0
treeab7cf53230014ffb3d7715d769dbff649c260e1e
parent89d59bc540764fe838a2ae62f4849b926a7d022d
drm/amd/display: Fix __umoddi3 undefined for 32 bit compilation

While we tried to build amdgpu on i386, we got this error:

ERROR: modpost: "__umoddi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!

This commit fixes this issue by replacing the standard module operator
with div_u64_rem.

Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Fixes: 77b0d6f279c7 ("drm/amd/display: Add dependant changes for DCN32/321")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c