aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2024-12-22 20:15:55 +0000
committerPratyush Yadav <[email protected]>2025-01-13 17:47:03 +0000
commit943e5f85600708c348f7b23d3c1cff1cf9763032 (patch)
tree5f4a0283187210f2815c2e22110946fd0d44ced9 /scripts/generate_rust_target.rs
parentmtd: spi-nor: spansion: Add support for S28HL02GT (diff)
downloadkernel-943e5f85600708c348f7b23d3c1cff1cf9763032.tar.gz
kernel-943e5f85600708c348f7b23d3c1cff1cf9763032.zip
mtd: spi-nor: sysfs: 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]> Acked-by: Pratyush Yadav <[email protected]> Signed-off-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/r/20241222-sysfs-const-bin_attr-mtd-v1-1-ee13140a4e9b@weissschuh.net
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions