linux/drivers/memstick/core
Christophe JAILLET 5bb798cfdf memstick: Constify struct memstick_device_id
'struct memstick_device_id' are not modified in these drivers.

Constifying this structure moves some data to a read-only section, so
increases overall security.

Update memstick_dev_match(), memstick_bus_match() and struct
memstick_driver accordingly.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text	   data	    bss	    dec	    hex	filename
  74055	   3455	     88	  77598	  12f1e	drivers/memstick/core/ms_block.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
  74087	   3423	     88	  77598	  12f1e	drivers/memstick/core/ms_block.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/6509d6f6ed64193f04e747a98ccea7492c976ca8.1727540434.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2024-10-14 12:40:10 +02:00
..
Kconfig memstick: core: Imply IOSCHED_BFQ 2023-02-02 16:02:06 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
memstick.c memstick: Constify struct memstick_device_id 2024-10-14 12:40:10 +02:00
ms_block.c memstick: Constify struct memstick_device_id 2024-10-14 12:40:10 +02:00
ms_block.h memstick/ms_block: simplify refcounting 2022-02-16 19:44:24 -07:00
mspro_block.c memstick: Constify struct memstick_device_id 2024-10-14 12:40:10 +02:00