diff options
author | Thomas Weißschuh | 2023-05-30 19:09:58 +0200 |
---|---|---|
committer | Jens Axboe | 2023-05-30 11:12:43 -0600 |
commit | cdb37f73cf05631c4f7401f2cd99878733c0c3d9 (patch) | |
tree | 17fbebaad45715241074a5a8323bad520db60d74 /block/partitions | |
parent | 539050f92ea7666bca17c2c380d8071d2f93dcde (diff) |
block: constify struct part_type part_type
The struct is never modified so it can be const.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20230419-const-partition-v3-2-4e14e48be367@weissschuh.net
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partitions')
-rw-r--r-- | block/partitions/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/partitions/core.c b/block/partitions/core.c index 650603dbe557..2bc21063edef 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -256,7 +256,7 @@ static int part_uevent(const struct device *dev, struct kobj_uevent_env *env) return 0; } -struct device_type part_type = { +const struct device_type part_type = { .name = "partition", .groups = part_attr_groups, .release = part_release, |