diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-16 15:25:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 11:20:31 +0300 |
commit | f800cc58598eb4564cabcc4129d5d1a6f7f598b4 (patch) | |
tree | 3843a4eaa4795fe7bec74ad45e08c6640fedaae4 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4ab0279857bb0b1c7a1ed61186527e33db693b6e (diff) | |
download | linux-f800cc58598eb4564cabcc4129d5d1a6f7f598b4.tar.xz |
accel/habanalabs: 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.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20241216-sysfs-const-bin_attr-habanalabs-v1-1-b35463197efb@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions