[PATCH v3 3/4] block: constify struct part_attr_group

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The struct is never modified so it can be const.

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

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,
 };
 

-- 
2.40.1




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux