block: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 8 Feb 2023 04:01:22 +0000 (04:01 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 Feb 2023 16:38:16 +0000 (09:38 -0700)
commit5f6224175fbe4c2b91e303c17af4d4eb5e3a60a7
tree8fc6f64b728435566204bb7c34ef900d5bae82c8
parent23f3e3272e7a4d9fb870485cd6df1e4f9539282c
block: 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>
Link: https://lore.kernel.org/r/20230208-kobj_type-block-v1-1-0b3eafd7d983@weissschuh.net
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-crypto-sysfs.c
block/blk-ia-ranges.c
block/blk-integrity.c
block/blk-mq-sysfs.c
block/blk-sysfs.c
block/elevator.c