linux/drivers/scsi/bfa
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
..
bfa.h scsi: bfa: Remove unused bfa_core code 2024-10-15 17:11:55 -04:00
bfa_core.c scsi: bfa: Remove unused bfa_core code 2024-10-15 17:11:55 -04:00
bfa_cs.h scsi: bfa: Fix function pointer type mismatch for state machines 2024-02-26 21:16:48 -05:00
bfa_defs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 292 2019-06-05 17:36:38 +02:00
bfa_defs_fcs.h scsi: bfa: Remove unused bfa_fcs code 2024-10-15 17:11:55 -04:00
bfa_defs_svc.h scsi: bfa: Fix typo 2021-05-21 17:00:21 -04:00
bfa_fc.h scsi: bfa: Replace one-element array with flexible-array member in struct fc_rscn_pl_s 2023-08-21 17:13:56 -04:00
bfa_fcbuild.c scsi: bfa: Remove unused parsers 2024-11-20 21:39:51 -05:00
bfa_fcbuild.h scsi: bfa: Remove unused parsers 2024-11-20 21:39:51 -05:00
bfa_fcpim.c scsi: bfa: Remove unused misc code 2024-10-15 17:11:55 -04:00
bfa_fcpim.h scsi: bfa: Remove unused misc code 2024-10-15 17:11:55 -04:00
bfa_fcs.c treewide: correct the typo 'retun' 2024-09-09 16:47:43 -07:00
bfa_fcs.h scsi: bfa: Remove unused bfa_fcs code 2024-10-15 17:11:55 -04:00
bfa_fcs_fcpim.c scsi: bfa: Fix function pointer type mismatch for state machines 2024-02-26 21:16:48 -05:00
bfa_fcs_lport.c scsi: bfa: Remove unused bfa_fcs code 2024-10-15 17:11:55 -04:00
bfa_fcs_rport.c scsi: bfa: Remove unused bfa_fcs code 2024-10-15 17:11:55 -04:00
bfa_hw_cb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 292 2019-06-05 17:36:38 +02:00
bfa_hw_ct.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 292 2019-06-05 17:36:38 +02:00
bfa_ioc.c scsi: bfa: Remove unused bfa_ioc code 2024-10-15 17:11:55 -04:00
bfa_ioc.h scsi: bfa: Remove unused bfa_ioc code 2024-10-15 17:11:55 -04:00
bfa_ioc_cb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 292 2019-06-05 17:36:38 +02:00
bfa_ioc_ct.c scsi: bfa: Demote non-compliant kerneldoc headers to standard comments 2020-07-24 22:32:07 -04:00
bfa_modules.h scsi: bfa: Remove unused bfa_svc code 2024-10-15 17:11:55 -04:00
bfa_plog.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 292 2019-06-05 17:36:38 +02:00
bfa_port.c scsi: bfa: Staticify local functions 2020-07-24 22:31:56 -04:00
bfa_port.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 292 2019-06-05 17:36:38 +02:00
bfa_svc.c scsi: bfa: Remove unused bfa_svc code 2024-10-15 17:11:55 -04:00
bfa_svc.h scsi: bfa: Remove unused bfa_svc code 2024-10-15 17:11:55 -04:00
bfad.c scsi: Constify struct pci_error_handlers 2025-02-03 17:35:58 -05:00
bfad_attr.c scsi: Use device_show_string() helper for sysfs attributes 2024-05-04 17:37:04 +02:00
bfad_bsg.c scsi: bfa: Fix function pointer type mismatch for hcb_qe->cbfn 2024-02-26 21:16:48 -05:00
bfad_bsg.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 292 2019-06-05 17:36:38 +02:00
bfad_debugfs.c scsi: bfa: Ensure the copied buf is NUL terminated 2024-05-06 21:19:24 -04:00
bfad_drv.h scsi: bfa: Remove unused misc code 2024-10-15 17:11:55 -04:00
bfad_im.c scsi: Convert SCSI drivers to .sdev_configure() 2024-12-04 15:34:28 -05:00
bfad_im.h scsi: bfa: Simplify an alloc_ordered_workqueue() invocation 2024-08-22 21:28:55 -04:00
bfi.h scsi: bfa: Fix cacography in bfi.h file 2024-10-03 21:41:37 -04:00
bfi_ms.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 292 2019-06-05 17:36:38 +02:00
bfi_reg.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 292 2019-06-05 17:36:38 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00