Skip to content

Commit 642e641

Browse files
goyalbhumikaKAGA-KOKO
authored andcommitted
x86/events/amd/iommu: Make iommu_pmu const and __initconst
iommu_pmu is only used as source for a copy operation in the init code path. Mark it const and __initconst. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: julia.lawall@lip6.fr Link: https://lkml.kernel.org/r/1505819443-670-1-git-send-email-bhumirks@gmail.com
1 parent 0cfe5b5 commit 642e641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/events/amd/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ const struct attribute_group *amd_iommu_attr_groups[] = {
405405
NULL,
406406
};
407407

408-
static struct pmu iommu_pmu = {
408+
static const struct pmu iommu_pmu __initconst = {
409409
.event_init = perf_iommu_event_init,
410410
.add = perf_iommu_add,
411411
.del = perf_iommu_del,

0 commit comments

Comments
 (0)