diff options
| author | Thomas Weißschuh <[email protected]> | 2025-01-14 21:25:14 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-02-21 08:20:30 +0000 |
| commit | 7de24e20a7aa83295e567982b0b29f3b53152759 (patch) | |
| tree | 278a585e6f1491d7869652b53dacb13c3613b644 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | driver core: location: Use str_yes_no() helper function (diff) | |
| download | kernel-7de24e20a7aa83295e567982b0b29f3b53152759.tar.gz kernel-7de24e20a7aa83295e567982b0b29f3b53152759.zip | |
cxl/port: 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 <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/20250114-sysfs-const-bin_attr-cxl-v1-1-5afa23fe2a52@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
