summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMichael Walle <mwalle@kernel.org>2026-10-15 13:31:52 +0200
committerMichael Walle <mwalle@kernel.org>2026-10-16 08:40:48 +0200
commitd7040c620d8b22f839af7750860b96e39cc58b7c (patch)
tree2da899914ff4d94c181dfb7431fdab5aac6d27be /tools/perf/scripts/python/bin
parent7dc9a4e7b9fcee871d021765c90943c4bab91474 (diff)
downloadlwn-d7040c620d8b22f839af7750860b96e39cc58b7c.tar.gz
lwn-d7040c620d8b22f839af7750860b96e39cc58b7c.zip
mtd: spi-nor: sfdp: reduce stack usage in spi_nor_parse_sfdp()
Two large spi_nor_flash_parameter structures on a function stack are really too much, and this can exceed an otherwise reasonable frame limit: drivers/mtd/spi-nor/sfdp.c: In function 'spi_nor_parse_sfdp': drivers/mtd/spi-nor/sfdp.c:1717:1: error: the frame size of 1600 bytes is larger than 1536 bytes [-Werror=frame-larger-than=] Allocate both rollback copies on the heap and use structure copies for type safety. Suggested-by: Arnd Bergmann <arnd@arndb.de> Suggested-by: David Laight <david.laight.linux@gmail.com> Fixes: d20029474a76 ("mtd: spi-nor: push the rollback mechanism into the sfdp module") Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Michael Walle <mwalle@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions