diff options
author | 2024-07-07 07:47:21 +0200 | |
---|---|---|
committer | 2024-07-30 10:57:19 +0200 | |
commit | 10c1ea1eaf4d107c323321e92237ba67848de291 (patch) | |
tree | 80fb746346a360fa46a0421d7790082eb93aa5b9 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | soc: mediatek: pwrap: Constify struct pmic_wrapper_type (diff) | |
download | wireguard-linux-10c1ea1eaf4d107c323321e92237ba67848de291.tar.xz wireguard-linux-10c1ea1eaf4d107c323321e92237ba67848de291.zip |
soc: mediatek: pwrap: Constify some struct int[]
These arrays are not modified in this driver.
Constifying this structure moves some data to a read-only section, so
increase overall security.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
45528 8532 16 54076 d33c drivers/soc/mediatek/mtk-pmic-wrap.o
After:
=====
text data bss dec hex filename
52664 1384 16 54064 d330 drivers/soc/mediatek/mtk-pmic-wrap.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/f1fea00fbaa0fea298bf67732e019f9cc5c407ab.1720331018.git.christophe.jaillet@wanadoo.fr
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions