diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-05-29 12:30:49 +0200 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2021-06-14 22:32:07 -0700 |
commit | c32dc04059c79ddb4f7cff94ad5de6e92ea2218d (patch) | |
tree | 11ab78907c0326978858971cc6754b43ea949783 /drivers/md/raid5.c | |
parent | 608f52e30aae7dc8da836e5b7b112d50a2d00e43 (diff) | |
download | lwn-c32dc04059c79ddb4f7cff94ad5de6e92ea2218d.tar.gz lwn-c32dc04059c79ddb4f7cff94ad5de6e92ea2218d.zip |
md: Constify attribute_group structs
The attribute_group structs are never modified, they're only passed to
sysfs_create_group() and sysfs_remove_group(). Make them const to allow
the compiler to put them in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index f83623ac8c34..0ee9aa0113f3 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -6940,7 +6940,7 @@ static struct attribute *raid5_attrs[] = { &ppl_write_hint.attr, NULL, }; -static struct attribute_group raid5_attrs_group = { +static const struct attribute_group raid5_attrs_group = { .name = NULL, .attrs = raid5_attrs, }; |