diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-21 15:48:07 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-24 09:36:01 +0100 |
| commit | 0e3cd21cdef24017f709d7991676fbd05adf634f (patch) | |
| tree | e9a6594e145e6fd82eb085ca953186b876ed5843 /scripts/const_structs.checkpatch | |
| parent | binder: use per-vma lock in page reclaiming (diff) | |
| download | linux-0e3cd21cdef24017f709d7991676fbd05adf634f.tar.gz linux-0e3cd21cdef24017f709d7991676fbd05adf634f.zip | |
ocxl: 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>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Link: https://lore.kernel.org/r/20241221-sysfs-const-bin_attr-misc-drivers-v2-1-ba5e79fe8771@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
