[PATCH v4 0/2] sysfs: finalize the constification of 'struct bin_attribute'

Thomas Weißschuh posted 2 patches 1 month, 3 weeks ago
fs/sysfs/file.c       | 22 +++++-----------------
include/linux/sysfs.h | 11 ++---------
2 files changed, 7 insertions(+), 26 deletions(-)
[PATCH v4 0/2] sysfs: finalize the constification of 'struct bin_attribute'
Posted by Thomas Weißschuh 1 month, 3 weeks ago
All users have been migrated to the new const types and variables.
Get rid of the transition machinery.

After applying, make sure no leftovers are left:
$ git grep bin_attrs_new
$ git grep read_new ':!drivers/block/swim_asm.S'
$ git grep write_new ':!drivers/cpufreq/powernow-k8.c' ':!drivers/s390/char/monwriter.c'

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v4:
- Drop already applied patches
- Rebase on v6.17-rc1
- Link to v3: https://lore.kernel.org/r/20250530-sysfs-const-bin_attr-final-v3-0-724bfcf05b99@weissschuh.net

Changes in v3:
- Drop already applied patches
- Constify internal references in fs/sysfs/file.c
- Update const_structs.checkpatch
- Rebase on linux-next/master
- Link to v2: https://lore.kernel.org/r/20250313-sysfs-const-bin_attr-final-v2-0-96284e1e88ce@weissschuh.net

Changes in v2:
- Rebase onto current driver-core-next.
- Remove prerequisites list from cover letter.
- Link to v1: https://lore.kernel.org/r/20250219-sysfs-const-bin_attr-final-v1-0-02828d86af3c@weissschuh.net

---
Thomas Weißschuh (2):
      sysfs: remove bin_attribute::read_new/write_new()
      sysfs: remove attribute_group::bin_attrs_new

 fs/sysfs/file.c       | 22 +++++-----------------
 include/linux/sysfs.h | 11 ++---------
 2 files changed, 7 insertions(+), 26 deletions(-)
---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250217-sysfs-const-bin_attr-final-d9e4d0cf8a1d

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>

Re: [PATCH v4 0/2] sysfs: finalize the constification of 'struct bin_attribute'
Posted by Greg Kroah-Hartman 1 month, 2 weeks ago
On Mon, Aug 11, 2025 at 11:13:34AM +0200, Thomas Weißschuh wrote:
> All users have been migrated to the new const types and variables.
> Get rid of the transition machinery.
> 
> After applying, make sure no leftovers are left:
> $ git grep bin_attrs_new
> $ git grep read_new ':!drivers/block/swim_asm.S'
> $ git grep write_new ':!drivers/cpufreq/powernow-k8.c' ':!drivers/s390/char/monwriter.c'

Looks good, thanks!

Finally queued up, sorry for the delay.

greg k-h