]> git.baikalelectronics.ru Git - kernel.git/commit
perf: hisi: Constify static struct attribute_group
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 17 Jan 2021 21:28:46 +0000 (22:28 +0100)
committerWill Deacon <will@kernel.org>
Wed, 20 Jan 2021 17:51:22 +0000 (17:51 +0000)
commit26ebaa20ae23eabb84920157900e756d9617f80d
treec1cb107f6f126496f8a1660299b2523909d5cdc7
parentb8d8601fb05eb6040cfcfa8a2bbbb3981ddb97af
perf: hisi: 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-4-rikard.falkeborn@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c
drivers/perf/hisilicon/hisi_uncore_hha_pmu.c
drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c