diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2026-05-19 23:21:24 +0300 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2026-05-23 04:37:59 +0300 |
| commit | c1f7275b613b5bb140efe22071167ed6c68c9a05 (patch) | |
| tree | 34a5a6d6bf2097cc78af33a270b2c888ac0b7827 /scripts/git.orderFile | |
| parent | f199cee401f7dc7280c8ed070d2433478253b665 (diff) | |
| download | linux-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/git.orderFile')
0 files changed, 0 insertions, 0 deletions
