[PATCH 0/4] sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()
Thomas Weißschuh
linux at weissschuh.net
Fri Dec 6 04:35:12 AEDT 2024
Most users use this function through the BIN_ATTR_SIMPLE* macros,
they can handle the switch transparently.
This series is meant to be merged through the driver core tree.
Signed-off-by: Thomas Weißschuh <linux at weissschuh.net>
---
Thomas Weißschuh (4):
sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()
platform/x86: wmi-bmof: Switch to sysfs_bin_attr_simple_read()
btf: Switch vmlinux BTF attribute to sysfs_bin_attr_simple_read()
btf: Switch module BTF attribute to sysfs_bin_attr_simple_read()
arch/powerpc/platforms/powernv/opal.c | 2 +-
drivers/platform/x86/wmi-bmof.c | 12 ++----------
fs/sysfs/file.c | 2 +-
include/linux/sysfs.h | 4 ++--
kernel/bpf/btf.c | 15 ++-------------
kernel/bpf/sysfs_btf.c | 12 ++----------
kernel/module/sysfs.c | 2 +-
7 files changed, 11 insertions(+), 38 deletions(-)
---
base-commit: feffde684ac29a3b7aec82d2df850fbdbdee55e4
change-id: 20241122-sysfs-const-bin_attr-simple-7c0ddb2fcf12
Best regards,
--
Thomas Weißschuh <linux at weissschuh.net>
More information about the Linuxppc-dev
mailing list