]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sysfs: implement all BIN_ATTR_* macros in terms of __BIN_ATTR()
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 3 Nov 2024 17:03:37 +0000 (17:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2024 13:00:28 +0000 (14:00 +0100)
commitae587a509903cca138e910445d8c21fe73b45c80
tree7d753729869c223a99be7ba36ca156b3415d47a7
parent699e7b85afb5d94b99b0a3edca7e9e93ea320c8f
sysfs: implement all BIN_ATTR_* macros in terms of __BIN_ATTR()

The preparations for the upcoming constification of struct bin_attribute
requires some logic in the structure definition macros.
To avoid duplication of that logic in multiple macros, reimplement all
other macros in terms of __BIN_ATTR().

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Krzysztof Wilczyński <kw@linux.com>
Link: https://lore.kernel.org/r/20241103-sysfs-const-bin_attr-v2-8-71110628844c@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/sysfs.h