btrfs: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 10 Feb 2023 02:13:40 +0000 (02:13 +0000)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:55 +0000 (19:38 +0100)
commit964a54e5e1a0d70cd80bd5a0885a1938463625b1
tree3f7675b7e5684b98a9c2a57788ee31dd003c6b76
parent1eb82ef87336045459929d915b8050beaea92951
btrfs: make kobj_type structures constant

Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.")
the driver core allows the usage of const struct kobj_type.

Take advantage of this to constify the structure definitions to prevent
modification at runtime.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c