Skip to content

sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()

Thomas Weißschuh bpf linux-modules linuxppc-dev lkml 2 versions – In review

Get series with b4
b4 am 20241228-sysfs-const-bin_attr-simple-v2-0-7c6f3f1767a3@weissschuh.net change-id 20241122-sysfs-const-bin_attr-simple-7c0ddb2fcf12

Versions newest first

  1. v2 Latest3 patches 12 repliesIn review
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Rebase on torvalds/master
- Drop wmi-bmof patch
- Pick up Acks from Andrii
- Link to v1: https://lore.kernel.org/r/20241205-sysfs-const-bin_attr-simple-v1-0-4a4e4ced71e3@weissschuh.net

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()arch/powerpc/platforms/powernv/opal.c fs/sysfs/file.c include/linux/sysfs.h +1 more+5 -54 replies
2/3btf: Switch vmlinux BTF attribute to sysfs_bin_attr_simple_read()kernel/bpf/sysfs_btf.c+2 -100 replies
3/3btf: Switch module BTF attribute to sysfs_bin_attr_simple_read()kernel/bpf/btf.c+2 -130 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndrii NakryikoAditya GuptaMahesh SalgaonkarMadhavan Srinivasan
1/3T-b T-b R-b A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()

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.

---
Changes in v2:
- Rebase on torvalds/master
- Drop wmi-bmof patch
- Pick up Acks from Andrii
- Link to v1: https://lore.kernel.org/r/20241205-sysfs-const-bin_attr-simple-v1-0-4a4e4ced71e3@weissschuh.net

---
Thomas Weißschuh (3):
sysfs: constify bin_attribute argument of 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 +-
 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 +-
 6 files changed, 9 insertions(+), 28 deletions(-)

---
base-commit: d6ef8b40d075c425f548002d2f35ae3f06e9cf96
change-id: 20241122-sysfs-const-bin_attr-simple-7c0ddb2fcf12

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>