diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-16 13:20:25 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-01-25 20:22:19 -0800 |
commit | e2c9e6190dbb127466b9da9fb18f9adc16dff43b (patch) | |
tree | 0291b0aab3bc42da2d11a44c979c4ca8d39e4531 /lib/test_maple_tree.c | |
parent | 1fc10653552c17b9f336a81014f20465e664a2ec (diff) |
mm/page_idle: 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.
Link: https://lkml.kernel.org/r/20241216-sysfs-const-bin_attr-page_idle-v1-1-cc01ecc55196@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/test_maple_tree.c')
0 files changed, 0 insertions, 0 deletions