diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-11-16 00:08:55 +0300 |
---|---|---|
committer | Niklas Cassel <cassel@kernel.org> | 2024-12-03 07:10:20 +0300 |
commit | 9986ce65bebb9a07a080d1e6ce04926b4c49ff17 (patch) | |
tree | 251119c71fce1f92c16aacc7d143cbd92d23cc12 /tools/perf/scripts/python/flamegraph.py | |
parent | 40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff) | |
download | linux-9986ce65bebb9a07a080d1e6ce04926b4c49ff17.tar.xz |
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 <christophe.jaillet@wanadoo.fr>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/8bddfee7f6f0f90eeb6da7156e30ab3bd553deb1.1731704917.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions