btf: Switch module BTF attribute to sysfs_bin_attr_simple_read()
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 28 Dec 2024 08:43:43 +0000 (09:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 09:44:06 +0000 (10:44 +0100)
commit18032c6bc0e204c8f836b09707ef671991e4fe87
tree1c2947d397024dfed6ad00c117679045ac8a62c6
parent42369b9a1ecf777ab2f6075747ecfb825db4552b
btf: Switch module BTF attribute to sysfs_bin_attr_simple_read()

The generic function from the sysfs core can replace the custom one.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20241228-sysfs-const-bin_attr-simple-v2-3-7c6f3f1767a3@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/bpf/btf.c