linux-next/drivers/net/can/m_can
Christophe JAILLET 62d73261a0 can: m_can: Constify struct m_can_ops
'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@wanadoo.fr>
Link: https://lore.kernel.org/all/a17b96d1be5341c11f263e1e45c9de1cb754e416.1719172843.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2024-06-28 09:35:13 +02:00
..
Kconfig can: Kconfig: add CONFIG_CAN_RX_OFFLOAD 2022-06-11 17:11:02 +02:00
m_can_pci.c can: m_can: Constify struct m_can_ops 2024-06-28 09:35:13 +02:00
m_can_platform.c can: m_can: Constify struct m_can_ops 2024-06-28 09:35:13 +02:00
m_can.c can: m_can: don't enable transceiver when probing 2024-06-21 09:47:24 +02:00
m_can.h can: m_can: Constify struct m_can_ops 2024-06-28 09:35:13 +02:00
Makefile can: tcan4x5x: move regmap code into seperate file 2021-01-06 15:15:37 +01:00
tcan4x5x-core.c can: m_can: Constify struct m_can_ops 2024-06-28 09:35:13 +02:00
tcan4x5x-regmap.c can: tcan4x5x: Remove reserved register 0x814 from writable table 2023-07-31 10:41:08 +02:00
tcan4x5x.h can: tcan4x5x: remove duplicate include of regmap.h 2021-03-30 11:14:48 +02:00