diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2023-05-30 19:09:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-05-30 11:12:43 -0600 |
commit | 0bd478005cfc7f50ccb769744d952e9687ee75b4 (patch) | |
tree | 4bb6cdb7e0fc79644fa1f59df29e62d61393efd9 /block/partitions | |
parent | cdb37f73cf05631c4f7401f2cd99878733c0c3d9 (diff) |
block: constify struct part_attr_group
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-3-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 2bc21063edef..d5f5633bf725 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -228,7 +228,7 @@ static struct attribute *part_attrs[] = { NULL }; -static struct attribute_group part_attr_group = { +static const struct attribute_group part_attr_group = { .attrs = part_attrs, }; |