]> git.ipfire.org Git - thirdparty/linux.git/commit
sysfs: attribute_group: enable const variants of is_visible()
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 29 Oct 2025 08:12:13 +0000 (09:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 14:16:35 +0000 (15:16 +0100)
commit7dd9fdb4939b972c1d0523e94fb3f70789653f0c
tree4ac59940fc4f08f175b402fb39cd2e71f218ec7a
parent02ac5335a55111d87a7a618355261b4407ed0f7f
sysfs: attribute_group: enable const variants of is_visible()

When constifying instances of struct attribute, for consistency the
corresponding .is_visible() callback should be adapted, too.
Introduce a temporary transition mechanism until all callbacks are
converted.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20251029-sysfs-const-attr-prep-v5-4-ea7d745acff4@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/group.c
include/linux/sysfs.h