[PATCH] mtd: spi-nor: reduce stack usage in spi_nor_parse_sfdp()

Tudor Ambarus tudor.ambarus at linaro.org
Wed Oct 7 06:02:02 PDT 2026



On 10/7/26 3:57 PM, Michael Walle wrote:
> Hi Arnd,
> 
>>>> On Tue Sep 15, 2026 at 9:40 PM CEST, Arnd Bergmann wrote:  
>>>>> From: Arnd Bergmann <arnd at arndb.de>
>>>>>
>>>>> Two large spi_nor_flash_parameter structures on a function stack
>>>>> is 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=]
> 
> Will you resend a v2 with Davids proposal? I'd like to get this
> fixed in this cycle. I could also take your patch and add Davids
> proposal on top.
> 

Hi, Michael,

Arnd is probably busy at lpc. If no answer from him you can always take
his patch, do the necessary amends and describe them in a [mw: blablah]
section above your S-o-b line.

Cheers,
ta



More information about the linux-mtd mailing list