Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sysfs: remove attribute_group::bin_attrs_new

This transitional field is now unused and unnecessary.
Remove it.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20250811-sysfs-const-bin_attr-final-v4-2-7b6053fd58bb@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thomas Weißschuh and committed by
Greg Kroah-Hartman
44d454fc 1d6249c1

+2 -5
+2 -5
include/linux/sysfs.h
··· 106 106 const struct bin_attribute *, 107 107 int); 108 108 struct attribute **attrs; 109 - union { 110 - const struct bin_attribute *const *bin_attrs; 111 - const struct bin_attribute *const *bin_attrs_new; 112 - }; 109 + const struct bin_attribute *const *bin_attrs; 113 110 }; 114 111 115 112 #define SYSFS_PREALLOC 010000 ··· 290 293 291 294 #define BIN_ATTRIBUTE_GROUPS(_name) \ 292 295 static const struct attribute_group _name##_group = { \ 293 - .bin_attrs_new = _name##_attrs, \ 296 + .bin_attrs = _name##_attrs, \ 294 297 }; \ 295 298 __ATTRIBUTE_GROUPS(_name) 296 299