diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-30 14:30:25 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-30 15:35:59 +0100 |
commit | 78dc14daf481a26b4da0e1ed7d9e1eb9112a0ba7 (patch) | |
tree | a38c40fcd3f660a9b3b503146d7535d6a17d33ce /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 90154d08675fdac580b24d90a8716987d4ef4071 (diff) |
nvmem: core: constify 'struct bin_attribute'
The sysfs core now allows instances of 'struct bin_attribute' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.
Also adapt the dynamic sysfs cell logic to handle the const attributes.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20241230143035.265518-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions