[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <mafs0iklmrp2l.fsf@kernel.org>
Date: Tue, 27 May 2025 18:33:22 +0200
From: Pratyush Yadav <pratyush@...nel.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Tudor Ambarus <tudor.ambarus@...aro.org>, Pratyush Yadav
<pratyush@...nel.org>, Michael Walle <mwalle@...nel.org>, Miquel Raynal
<miquel.raynal@...tlin.com>, Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-mtd@...ts.infradead.org
Subject: Re: [PATCH] mtd: spi-nor: Constify struct spi_nor_fixups
On Sun, May 25 2025, Christophe JAILLET wrote:
> 'struct spi_nor_fixups' are not modified in this driver.
>
> Constifying these structures moves some data to a read-only section, so
> increases overall security, especially when the structure holds some
> function pointers.
>
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
> text data bss dec hex filename
> 23304 13168 0 36472 8e78 drivers/mtd/spi-nor/micron-st.o
>
> After:
> =====
> text data bss dec hex filename
> 23560 12912 0 36472 8e78 drivers/mtd/spi-nor/micron-st.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Acked-by: Pratyush Yadav <pratyush@...nel.org>
[...]
--
Regards,
Pratyush Yadav
Powered by blists - more mailing lists