diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-01-17 22:28:47 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-01-20 18:51:23 +0100 |
commit | f0c140481d1b807217cacdcf11d24cfa407a7a53 (patch) | |
tree | b73fe50bd0c88552f325139a3974dff93e7fe6dc /drivers/perf/arm-cmn.c | |
parent | perf: hisi: Constify static struct attribute_group (diff) | |
download | linux-f0c140481d1b807217cacdcf11d24cfa407a7a53.tar.xz linux-f0c140481d1b807217cacdcf11d24cfa407a7a53.zip |
perf: Constify static struct attribute_group
The only usage is to put their addresses in an array of pointers to
const struct attribute group. Make them const to allow the compiler
to put them in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210117212847.21319-5-rikard.falkeborn@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf/arm-cmn.c')
-rw-r--r-- | drivers/perf/arm-cmn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/perf/arm-cmn.c b/drivers/perf/arm-cmn.c index a76ff594f3ca..f30fcd330899 100644 --- a/drivers/perf/arm-cmn.c +++ b/drivers/perf/arm-cmn.c @@ -616,7 +616,7 @@ static struct attribute *arm_cmn_cpumask_attrs[] = { NULL, }; -static struct attribute_group arm_cmn_cpumask_attr_group = { +static const struct attribute_group arm_cmn_cpumask_attr_group = { .attrs = arm_cmn_cpumask_attrs, }; |