diff options
| author | Qiuxu Zhuo <[email protected]> | 2024-08-29 12:09:03 +0000 |
|---|---|---|
| committer | Tony Luck <[email protected]> | 2024-09-03 22:09:22 +0000 |
| commit | 43247abd092e634a4ca5bcd25eeae3b42f703b58 (patch) | |
| tree | 06528270559fa1743589b880c5b6eb0f2da06625 /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | |
| parent | EDAC/{skx_common,i10nm}: Remove the AMAP register for determing DDR5 (diff) | |
| download | kernel-43247abd092e634a4ca5bcd25eeae3b42f703b58.tar.gz kernel-43247abd092e634a4ca5bcd25eeae3b42f703b58.zip | |
EDAC/sb_edac: Fix the compile warning of large frame size
Compiling sb_edac driver with GCC 11.4.0 and the W=1 option reported
the following warning:
drivers/edac/sb_edac.c: In function ‘sbridge_mce_output_error’:
drivers/edac/sb_edac.c:3249:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
As there is no concurrent invocation of sbridge_mce_output_error(),
fix this warning by moving the large-size variables 'msg' and 'msg_full'
from the stack to the pre-allocated data segment.
[Tony: Fix checkpatch warnings for code alignment & use of strcpy()]
Reported-by: Zhang Rui <[email protected]>
Tested-by: Zhang Rui <[email protected]>
Signed-off-by: Qiuxu Zhuo <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c')
0 files changed, 0 insertions, 0 deletions
