]> git.baikalelectronics.ru Git - kernel.git/commit
net-sysfs: Replace ktype default_attrs field with groups
authorKimberly Brown <kimbrownkd@gmail.com>
Tue, 2 Apr 2019 02:51:35 +0000 (22:51 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 20:06:11 +0000 (22:06 +0200)
commit5b3c4fb72edaebf35728629e35ace2dd8218471d
treece884f55f95b05b387dc90c3514db70643220b12
parentc15fe8e25e5671a5dd7810799557e14628631439
net-sysfs: Replace ktype default_attrs field with groups

The kobj_type default_attrs field is being replaced by the
default_groups field. Replace the default_attrs fields in rx_queue_ktype
and netdev_queue_ktype with default_groups. Use the ATTRIBUTE_GROUPS
macro to create rx_queue_default_groups and netdev_queue_default_groups.

This patch was tested by verifying that the sysfs files for the
attributes in the default groups were created.

Signed-off-by: Kimberly Brown <kimbrownkd@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/net-sysfs.c