xfs: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 10 Feb 2023 02:56:48 +0000 (18:56 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 10 Feb 2023 16:59:48 +0000 (08:59 -0800)
commit2ee8333529857a702475ce36d3af3ecbbcf5af5a
treedaf47038cc2461afc18f6f2f6779d682252bde2d
parent167ce4cbfa370114fee61ad5b58e401d95e2d5cd
xfs: 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: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_error.c
fs/xfs/xfs_sysfs.c
fs/xfs/xfs_sysfs.h