diff options
author | 2025-01-25 11:12:16 +0100 | |
---|---|---|
committer | 2025-02-21 09:20:30 +0100 | |
commit | 1c83b02c91c1cc42c3030788f437fe403c7e3b37 (patch) | |
tree | f9cf6fb105c2fd7e0869653aff5ddbd91b38cf47 /include/linux/compiler-gcc.h | |
parent | firmware: dmi: Define bin_attributes through macro (diff) | |
download | wireguard-linux-1c83b02c91c1cc42c3030788f437fe403c7e3b37.tar.xz wireguard-linux-1c83b02c91c1cc42c3030788f437fe403c7e3b37.zip |
firmware: dmi: 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/20250125-sysfs-const-bin_attr-dmi-v2-3-ece1895936f4@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions