linux/drivers/scsi/aacraid
Christophe JAILLET 14807b4a4e scsi: Constify struct pci_error_handlers
'struct pci_error_handlers' are not modified in these drivers.

Constifying these structures moves some data to a read-only section, so
increase 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
  39049	   6429	    112	  45590	   b216	drivers/scsi/aacraid/linit.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
  39113	   6365	    112	  45590	   b216	drivers/scsi/aacraid/linit.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/efdec8425981e10fc398fa2ac599c9c45d930561.1737318548.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
History 2025-02-03 17:35:58 -05:00
..
aachba.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
aacraid.h scsi: aacraid: Remove unused aac_check_health() 2024-10-03 22:00:08 -04:00
commctrl.c scsi: aacraid: struct {user,}sgmap{,64,raw}: Replace 1-element arrays with flexible arrays 2024-08-02 21:38:08 -04:00
comminit.c SCSI misc on 20240919 2024-09-19 11:28:51 +02:00
commsup.c scsi: aacraid: Remove unused aac_check_health() 2024-10-03 22:00:08 -04:00
dpcsup.c scsi: aacraid: Demote partially documented function header 2020-07-15 17:25:10 -04:00
linit.c scsi: Constify struct pci_error_handlers 2025-02-03 17:35:58 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
nark.c scsi: aacraid: Add missing description for 'dev' 2020-07-24 22:09:58 -04:00
rkt.c scsi: aacraid: Add missing description for 'dev' 2020-07-24 22:09:57 -04:00
rx.c scsi: aacraid: Fix misspelling of _aac_rx_init() 2021-03-15 22:14:53 -04:00
sa.c scsi: aacraid: Add descriptions for missing parameters 2020-07-24 22:09:57 -04:00
src.c scsi: aacraid: union aac_init: Replace 1-element array with flexible array 2024-08-02 21:28:25 -04:00