Skip to content
Commit 655c167e authored by Hayden Goodfellow's avatar Hayden Goodfellow Committed by Alex Deucher
Browse files

drm/amd/display: Fix wrong format specifier in amdgpu_dm.c



[Why]
Currently, the 32bit kernel build fails due to an incorrect string
format specifier. ARRAY_SIZE() returns size_t type as it uses sizeof().
However, we specify it in a string as %ld. This causes a compiler error
and causes the 32bit build to fail.

[How]
Change the %ld to %zu as size_t (which sizeof() returns) is an unsigned
integer data type. We use 'z' to ensure it also works with 64bit build.

Reviewed-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarHayden Goodfellow <Hayden.Goodfellow@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c719b0cd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment