]> Gentwo Git Trees - linux/.git/commit
mm/page_idle: constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Dec 2024 12:20:25 +0000 (13:20 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Jan 2025 06:41:02 +0000 (22:41 -0800)
commitd384039d03aae2da0aa3ea7668f992566d1f6197
treea2d63de14781d1d2830c587e7b45572d4e306cd3
parent3f8b7c8a3e057408f76f1f098e5253b4419b4337
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>
mm/page_idle.c