aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h
diff options
context:
space:
mode:
authorHayden Goodfellow <[email protected]>2021-09-13 01:32:09 +0000
committerAlex Deucher <[email protected]>2021-09-23 19:17:31 +0000
commit655c167edc8c260b6df08bdcfaca8afde0efbeb6 (patch)
treeda3aa2136787149f7caa418bb34738b3d176216b /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h
parentdrm/amd/display: 3.2.154 (diff)
downloadkernel-655c167edc8c260b6df08bdcfaca8afde0efbeb6.tar.gz
kernel-655c167edc8c260b6df08bdcfaca8afde0efbeb6.zip
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: Harry Wentland <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Hayden Goodfellow <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h')
0 files changed, 0 insertions, 0 deletions