Re: [PATCH net-next] can: m_can: Constify struct m_can_ops
From: Marc Kleine-Budde
Date: Mon Jun 24 2024 - 02:09:03 EST
On 23.06.2024 22:01:50, Christophe JAILLET wrote:
> 'struct m_can_ops' is not modified in these drivers.
>
> Constifying this structure moves some data to a read-only section, so
> increase overall security.
>
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
> text data bss dec hex filename
> 4806 520 0 5326 14ce drivers/net/can/m_can/m_can_pci.o
>
> After:
> =====
> text data bss dec hex filename
> 4862 464 0 5326 14ce drivers/net/can/m_can/m_can_pci.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
Applied to linuc-can-next.
Thanks,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Attachment:
signature.asc
Description: PGP signature