diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-05-29 13:30:49 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2021-06-15 08:32:07 +0300 |
commit | c32dc04059c79ddb4f7cff94ad5de6e92ea2218d (patch) | |
tree | 11ab78907c0326978858971cc6754b43ea949783 /drivers/md/md-bitmap.c | |
parent | 608f52e30aae7dc8da836e5b7b112d50a2d00e43 (diff) | |
download | linux-c32dc04059c79ddb4f7cff94ad5de6e92ea2218d.tar.xz |
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/md-bitmap.c')
-rw-r--r-- | drivers/md/md-bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md-bitmap.c b/drivers/md/md-bitmap.c index ea3130e11680..e29c6298ef5c 100644 --- a/drivers/md/md-bitmap.c +++ b/drivers/md/md-bitmap.c @@ -2616,7 +2616,7 @@ static struct attribute *md_bitmap_attrs[] = { &max_backlog_used.attr, NULL }; -struct attribute_group md_bitmap_group = { +const struct attribute_group md_bitmap_group = { .name = "bitmap", .attrs = md_bitmap_attrs, }; |