diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-12-12 18:12:58 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-12-20 13:48:31 +0100 |
commit | 1c6799266aacbddc9df8e2712566895e9a12641b (patch) | |
tree | 074e62fc9097fbd9b3b743c8d42c6d910b0090c6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fa4752d4b5999e2f4fac4689def0c7a306d5b909 (diff) |
pinctrl: ocelot: Constify some structures
'struct ocelot_match_data and 'struct irq_chip' are not modified in this
driver.
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:
Before:
======
text data bss dec hex filename
41459 9008 80 50547 c573 drivers/pinctrl/pinctrl-ocelot.o
After:
=====
text data bss dec hex filename
42803 7640 80 50523 c55b drivers/pinctrl/pinctrl-ocelot.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/32edcf0567fffd0b1a219e7e2dad7e0bd8c5aaf4.1734023550.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions