[PATCH] mtd: cfi_cmdset_0001: shrink do_write_buffer() stack frame
Miquel Raynal
miquel.raynal at bootlin.com
Fri Sep 4 10:38:08 PDT 2026
On Mon, 24 Aug 2026 03:47:03 +0200, Karl Mehltretter wrote:
> arm32 allmodconfig fails to build with gcc:
>
> drivers/mtd/chips/cfi_cmdset_0001.c:1883:1: error: the frame size of 1296
> bytes is larger than 1280 bytes [-Werror=frame-larger-than=]
>
> With MTD_MAP_BANK_WIDTH_32 a map_word is 32 bytes, and with KASAN_STACK
> every temporary gets its own redzoned slot. do_write_buffer() builds a
> map_word for each of the twelve commands it issues, and those temporaries
> dominate its frame.
>
> [...]
Applied to mtd/fixes, thanks!
[1/1] mtd: cfi_cmdset_0001: shrink do_write_buffer() stack frame
commit: 39b975ff208610301bc400460ec245caeffa4ee0
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
More information about the linux-mtd
mailing list