diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-09-08 16:55:58 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-09-09 18:27:01 +0100 |
commit | 97e63bc35f4c086ab7ad3894c9693e18e79162d9 (patch) | |
tree | e727afc5ef264d10ecefdda5a9e00795bfbb2f87 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 8651db0fcb60b2376f5be7934ecf68b19cb81124 (diff) |
regulator: mp5416: Constify struct regulator_desc
'struct regulator_desc' is not modified in this driver.
Constifying this structure 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
3516 5320 32 8868 22a4 drivers/regulator/mp5416.o
After:
=====
text data bss dec hex filename
8508 320 32 8860 229c drivers/regulator/mp5416.o
--
Compile tested only
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/fd8d1307f211ec7754f46b6678c04309556003bc.1725807320.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions