summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2025-01-19 23:29:39 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2025-02-04 01:35:58 +0300
commit14807b4a4e03b66c26f4c82f495fc8fbe35fb95d (patch)
tree78051515076d6a61d4f991a1ade295aaf7d75bd5 /tools/perf/scripts/python/libxed.py
parent2014c95afecee3e76ca4a56956a936e23283f05b (diff)
downloadlinux-14807b4a4e03b66c26f4c82f495fc8fbe35fb95d.tar.xz
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>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions