]> git.baikalelectronics.ru Git - kernel.git/commit
md: Constify attribute_group structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 29 May 2021 10:30:49 +0000 (12:30 +0200)
committerSong Liu <song@kernel.org>
Tue, 15 Jun 2021 05:32:07 +0000 (22:32 -0700)
commite0999e695a063b6c00dd40981cde13d938056002
tree11ab78907c0326978858971cc6754b43ea949783
parent0d3987e3bfe800387f91a8a545efefd72cabb4a8
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>
drivers/md/md-bitmap.c
drivers/md/md.c
drivers/md/md.h
drivers/md/raid5.c