Re: [PATCH v2] ubifs: use default_groups in kobj_type

From: Richard Weinberger
Date: Fri Jan 14 2022 - 16:38:52 EST


----- Ursprüngliche Mail -----
> Von: "Greg Kroah-Hartman" <gregkh@xxxxxxxxxxxxxxxxxxx>
> An: "linux-kernel" <linux-kernel@xxxxxxxxxxxxxxx>
> CC: "Greg Kroah-Hartman" <gregkh@xxxxxxxxxxxxxxxxxxx>, "richard" <richard@xxxxxx>, "schaecsn" <schaecsn@xxxxxxx>,
> "linux-mtd" <linux-mtd@xxxxxxxxxxxxxxxxxxx>
> Gesendet: Freitag, 14. Januar 2022 11:48:20
> Betreff: [PATCH v2] ubifs: use default_groups in kobj_type

> There are currently 2 ways to create a set of sysfs files for a
> kobj_type, through the default_attrs field, and the default_groups
> field. Move the ubifs sysfs code to use default_groups field which has
> been the preferred way since aa30f47cf666 ("kobject: Add support for
> default attribute groups to kobj_type") so that we can soon get rid of
> the obsolete default_attrs field.
>
> Cc: Richard Weinberger <richard@xxxxxx>
> Cc: Stefan Schaeckeler <schaecsn@xxxxxxx>
> Cc: linux-mtd@xxxxxxxxxxxxxxxxxxx
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> ---
> v2: fix up the changelog text to properly refer to the ubifs code
> instead of some other subsystem as pointed out by Michael Walle

Acked-by: Richard Weinberger <richard@xxxxxx>

Thanks,
//richard