Commit da72f3d2 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Li Nan
Browse files

md: Constify attribute_group structs

mainline inclusion
from mainline-v5.14-rc1
commit c32dc040
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I81XCK

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c32dc04059c79ddb4f7cff94ad5de6e92ea2218d



--------------------------------

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: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Signed-off-by: default avatarLi Nan <linan122@huawei.com>
parent ece14f97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment