Skip to content
Snippets Groups Projects
Commit 3262ff47 authored by Hayden Goodfellow's avatar Hayden Goodfellow Committed by Kenny Ho
Browse files

drm/amd/display: Fix issue breaking 32bit Linux build


[Why]
Currently, the 32bit linux build is failing due to an issue with using the
built-in / operator with a 64bit dividend. Doing so generates code which
calls __udivdi3() in libgcc. However, libgcc is not linked with the kernel
at this point in the build, hence this causes the 32bit build to fail to
compile.

[How]
Change the / operator to div_u64 instead.

Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarPavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: default avatarHayden Goodfellow <Hayden.Goodfellow@amd.com>
parent a767bbd7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment