summaryrefslogtreecommitdiff
path: root/scripts/diffconfig
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2026-05-19 23:21:24 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2026-05-23 04:37:59 +0300
commitc1f7275b613b5bb140efe22071167ed6c68c9a05 (patch)
tree34a5a6d6bf2097cc78af33a270b2c888ac0b7827 /scripts/diffconfig
parentf199cee401f7dc7280c8ed070d2433478253b665 (diff)
downloadlinux-c1f7275b613b5bb140efe22071167ed6c68c9a05.tar.xz
scsi: megaraid_mbox: Reduce stack usage in megaraid_cmm_register()
The megaraid_cmm_register() function has a local copy of mraid_mmadp_t on the stack that gets copied into the actual structure used at runtime. When -fsanitize=thread is enabled, this causes the per-function stack frame to grow beyond the warning limit: megaraid_mbox.c: In function 'megaraid_cmm_register': megaraid_mbox.c:3472:1: error: the frame size of 1312 bytes is larger than 1280 bytes [-Werror=frame-larger-than=] Refactor this by moving the allocation into the caller to save the extra on-stack copy of the structure. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260519202143.1305850-1-arnd@kernel.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/diffconfig')
0 files changed, 0 insertions, 0 deletions