diff mbox series

[3/4] block: constify struct part_attr_group

Message ID 20230419-const-partition-v1-3-2d66f2d83873@weissschuh.net (mailing list archive)
State New, archived
Headers show
Series block: constify some structures of partitions/core.c | expand

Commit Message

Thomas Weißschuh April 19, 2023, 7:50 a.m. UTC
The struct is never modified so it can be const.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 block/partitions/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/block/partitions/core.c b/block/partitions/core.c
index 812407ea38e9..032e415618cb 100644
--- a/block/partitions/core.c
+++ b/block/partitions/core.c
@@ -236,7 +236,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,
 };