md: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 14 Feb 2023 03:19:22 +0000 (03:19 +0000)
committerSong Liu <song@kernel.org>
Fri, 14 Apr 2023 05:20:23 +0000 (22:20 -0700)
commit4d72a9de2f002c77267c720ebc5595a17f0d66e9
treefbf1d3868d4b3518e99d6721d23910ff2d743937
parenta405c6f0229526160aa3f177f65e20c86fce84c5
md: 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.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230214-kobj_type-md-v1-1-d6853f707f11@weissschuh.net
drivers/md/md.c