f2fs: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 9 Feb 2023 03:20:10 +0000 (03:20 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 13 Feb 2023 17:52:47 +0000 (09:52 -0800)
commit273a51e5521213a13e5852e762cc9c03c66b9baa
tree3952559545dabf602ccf5209cdf26bbd37856a1b
parent269d119481008cd725ce32553332593c0ecfc91c
f2fs: 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>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/sysfs.c