diff options
author | Nick Child <nick.child@ibm.com> | 2021-12-16 23:00:19 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-23 12:33:11 +0100 |
commit | c49f5d88ff0166ffa4e48ee8ce84d63719f346be (patch) | |
tree | c813f743dde45f2c55049c017cfbca906900fbf3 /arch/powerpc/perf/ppc970-pmu.c | |
parent | powerpc/mm: Add __init attribute to eligible functions (diff) | |
download | linux-c49f5d88ff0166ffa4e48ee8ce84d63719f346be.tar.xz linux-c49f5d88ff0166ffa4e48ee8ce84d63719f346be.zip |
powerpc/perf: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/perf' are deserving of an
`__init` macro attribute. These functions are only called by other
initialization functions and therefore should inherit the attribute.
Also, change function declarations in header files to include `__init`.
Signed-off-by: Nick Child <nick.child@ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211216220035.605465-5-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/perf/ppc970-pmu.c')
-rw-r--r-- | arch/powerpc/perf/ppc970-pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/ppc970-pmu.c b/arch/powerpc/perf/ppc970-pmu.c index 1f8263785286..09802482ba72 100644 --- a/arch/powerpc/perf/ppc970-pmu.c +++ b/arch/powerpc/perf/ppc970-pmu.c @@ -489,7 +489,7 @@ static struct power_pmu ppc970_pmu = { .flags = PPMU_NO_SIPR | PPMU_NO_CONT_SAMPLING, }; -int init_ppc970_pmu(void) +int __init init_ppc970_pmu(void) { if (!cur_cpu_spec->oprofile_cpu_type || (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970") |