block: make kobj_type structures constant
Since commit ee6d3dd4 ("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>
Showing
- block/blk-crypto-sysfs.c 1 addition, 1 deletionblock/blk-crypto-sysfs.c
- block/blk-ia-ranges.c 2 additions, 2 deletionsblock/blk-ia-ranges.c
- block/blk-integrity.c 1 addition, 1 deletionblock/blk-integrity.c
- block/blk-mq-sysfs.c 3 additions, 3 deletionsblock/blk-mq-sysfs.c
- block/blk-sysfs.c 1 addition, 1 deletionblock/blk-sysfs.c
- block/elevator.c 2 additions, 2 deletionsblock/elevator.c
Loading
Please register or sign in to comment