perf/hisi: Constify static attribute_group structs
These are only put in an array of pointers to const attribute_group structs. Make them const like the other static attribute_group structs 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/20210605221514.73449-1-rikard.falkeborn@gmail.com Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
5ca54404e6
commit
59d697a99d
@@ -333,7 +333,7 @@ static struct attribute *hisi_pa_pmu_identifier_attrs[] = {
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group hisi_pa_pmu_identifier_group = {
|
static const struct attribute_group hisi_pa_pmu_identifier_group = {
|
||||||
.attrs = hisi_pa_pmu_identifier_attrs,
|
.attrs = hisi_pa_pmu_identifier_attrs,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -366,7 +366,7 @@ static struct attribute *hisi_sllc_pmu_identifier_attrs[] = {
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group hisi_sllc_pmu_identifier_group = {
|
static const struct attribute_group hisi_sllc_pmu_identifier_group = {
|
||||||
.attrs = hisi_sllc_pmu_identifier_attrs,
|
.attrs = hisi_sllc_pmu_identifier_attrs,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user