zonefs: make kobj_type structure constant
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 10 Feb 2023 02:14:44 +0000 (02:14 +0000)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Sun, 12 Feb 2023 23:03:48 +0000 (08:03 +0900)
commit2b188a2cfc4d8f319ad23832ec1390bdae52daf6
treee42e8510807184be2a88c8371a7bc44722c2c8a6
parent43592c46375a056b411b065acf2d37fc1e3ab251
zonefs: make kobj_type structure 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 definition to prevent
modification at runtime.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
fs/zonefs/sysfs.c