diff options
author | 2024-12-12 18:12:58 +0100 | |
---|---|---|
committer | 2024-12-20 13:48:31 +0100 | |
commit | 1c6799266aacbddc9df8e2712566895e9a12641b (patch) | |
tree | 074e62fc9097fbd9b3b743c8d42c6d910b0090c6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'renesas-pinctrl-for-v6.14-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into devel (diff) | |
download | wireguard-linux-1c6799266aacbddc9df8e2712566895e9a12641b.tar.xz wireguard-linux-1c6799266aacbddc9df8e2712566895e9a12641b.zip |
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