diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-15 18:19:04 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-12-16 09:02:26 +0300 |
commit | 0f049da5b0568cafd39706cc87a1b689dcdae8a0 (patch) | |
tree | 6daa418aea13e28f150df27000d8611d10e6c782 /scripts/lib/kdoc/kdoc_files.py | |
parent | cf85760f6a0a656d06d9e2851fc82baf1240262a (diff) | |
download | linux-0f049da5b0568cafd39706cc87a1b689dcdae8a0.tar.xz |
hwmon: (occ/p9_sbe) 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>
Link: https://lore.kernel.org/r/20241215-sysfs-const-bin_attr-hwmon-v1-1-ea72a6a46c36@weissschuh.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions