RE: [PATCH 1/1] EDAC/sb_edac: Fix the compile warning of large frame size
From: Luck, Tony
Date: Tue Sep 03 2024 - 17:08:14 EST
> 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.
>
> Reported-by: Zhang Rui <rui.zhang@xxxxxxxxx>
> Tested-by: Zhang Rui <rui.zhang@xxxxxxxxx>
> Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@xxxxxxxxx>
Qiuxu,
Applied this and three other EDAC driver patches posted while I was away
to the RAS edac-drivers branch and merged that into edac-for-next
Thanks
-Tony