summaryrefslogtreecommitdiff
path: root/rust/helpers/mm.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2025-06-20 13:41:28 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2025-06-26 16:18:41 +0200
commit815703e2ecdf091a724c16671aadd8c55de24878 (patch)
tree9abf09e1fb1abcf429d04cbe269907036b0e049d /rust/helpers/mm.c
parent10fa9a4e4dc332e0ff18150c82ba87311deb82bc (diff)
EDAC/mem_repair: Reduce stack usage in edac_mem_repair_get_desc()
Constructing an array on the stack adds complexity and can exceed the warning limit for per-function stack usage: drivers/edac/mem_repair.c:361:5: error: stack frame size (1296) exceeds limit (1280) in 'edac_mem_repair_get_desc' [-Werror,-Wframe-larger-than] Change this to have the actual attribute array allocated statically and then just add the instance number on the per-instance copy. Fixes: 699ea5219c4b ("EDAC: Add a memory repair control feature") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/20250620114135.4017183-1-arnd@kernel.org
Diffstat (limited to 'rust/helpers/mm.c')
0 files changed, 0 insertions, 0 deletions