Commit c2c4d5c0 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Will Deacon
Browse files

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: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210117212847.21319-4-rikard.falkeborn@gmail.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 3cb7d2da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -319,7 +319,7 @@ static struct attribute *hisi_ddrc_pmu_identifier_attrs[] = {
	NULL
};

static struct attribute_group hisi_ddrc_pmu_identifier_group = {
static const struct attribute_group hisi_ddrc_pmu_identifier_group = {
	.attrs = hisi_ddrc_pmu_identifier_attrs,
};

+1 −1
Original line number Diff line number Diff line
@@ -331,7 +331,7 @@ static struct attribute *hisi_hha_pmu_identifier_attrs[] = {
	NULL
};

static struct attribute_group hisi_hha_pmu_identifier_group = {
static const struct attribute_group hisi_hha_pmu_identifier_group = {
	.attrs = hisi_hha_pmu_identifier_attrs,
};

+1 −1
Original line number Diff line number Diff line
@@ -321,7 +321,7 @@ static struct attribute *hisi_l3c_pmu_identifier_attrs[] = {
	NULL
};

static struct attribute_group hisi_l3c_pmu_identifier_group = {
static const struct attribute_group hisi_l3c_pmu_identifier_group = {
	.attrs = hisi_l3c_pmu_identifier_attrs,
};