]> www.infradead.org Git - users/willy/pagecache.git/commit
module: sysfs: Drop member 'module_sect_attrs::nsections'
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 27 Dec 2024 13:23:20 +0000 (14:23 +0100)
committerPetr Pavlu <petr.pavlu@suse.com>
Sun, 26 Jan 2025 12:05:24 +0000 (13:05 +0100)
commitd8959b947a8dfab1047c6fd5e982808f65717bfe
treebd2ecf98996e6a6e5c8eb351d589bc80abc5df45
parentf3227ffda07470848abe3cfa2039b21816ce3090
module: sysfs: Drop member 'module_sect_attrs::nsections'

The member is only used to iterate over all attributes in
free_sect_attrs(). However the attribute group can already be used for
that. Use the group and drop 'nsections'.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20241227-sysfs-const-bin_attr-module-v2-1-e267275f0f37@weissschuh.net
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
kernel/module/sysfs.c