diff options
| author | Christophe JAILLET <[email protected]> | 2024-11-15 21:08:55 +0000 |
|---|---|---|
| committer | Niklas Cassel <[email protected]> | 2024-12-03 04:10:20 +0000 |
| commit | 9986ce65bebb9a07a080d1e6ce04926b4c49ff17 (patch) | |
| tree | 251119c71fce1f92c16aacc7d143cbd92d23cc12 /lib/fault-inject.c | |
| parent | Linux 6.13-rc1 (diff) | |
| download | kernel-9986ce65bebb9a07a080d1e6ce04926b4c49ff17.tar.gz kernel-9986ce65bebb9a07a080d1e6ce04926b4c49ff17.zip | |
ata: Constify struct pci_device_id
'struct pci_device_id' 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
4245 1454 4 5703 1647 drivers/ata/ata_generic.o
After:
=====
text data bss dec hex filename
4725 974 4 5703 1647 drivers/ata/ata_generic.o
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Reviewed-by: Sergey Shtylyov <[email protected]>
Link: https://lore.kernel.org/r/8bddfee7f6f0f90eeb6da7156e30ab3bd553deb1.1731704917.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Niklas Cassel <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
