diff options
author | Hayden Goodfellow <Hayden.Goodfellow@amd.com> | 2021-09-12 21:32:09 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-29 17:25:33 +0200 |
commit | c6e4817ab622f526d6afe9e02c6d85b177b3e846 (patch) | |
tree | 9cec9f48f4d5de2c2350175f19f4cc5522e1e885 /fs/cifs | |
parent | 198a6f40822eda39f713e345cebdb8523645d3ce (diff) | |
download | linux-stable-c6e4817ab622f526d6afe9e02c6d85b177b3e846.tar.gz linux-stable-c6e4817ab622f526d6afe9e02c6d85b177b3e846.tar.bz2 linux-stable-c6e4817ab622f526d6afe9e02c6d85b177b3e846.zip |
drm/amd/display: Fix wrong format specifier in amdgpu_dm.c
commit 655c167edc8c260b6df08bdcfaca8afde0efbeb6 upstream.
[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 <Harry.Wentland@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Hayden Goodfellow <Hayden.Goodfellow@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/cifs')
0 files changed, 0 insertions, 0 deletions