aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/power8-pmu.c
diff options
context:
space:
mode:
authorNick Child <nick.child@ibm.com>2021-12-16 17:00:19 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-23 22:33:11 +1100
commitc49f5d88ff0166ffa4e48ee8ce84d63719f346be (patch)
treec813f743dde45f2c55049c017cfbca906900fbf3 /arch/powerpc/perf/power8-pmu.c
parentpowerpc/mm: Add __init attribute to eligible functions (diff)
downloadlinux-dev-c49f5d88ff0166ffa4e48ee8ce84d63719f346be.tar.xz
linux-dev-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/power8-pmu.c')
-rw-r--r--arch/powerpc/perf/power8-pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c
index 5282e8415ddf..f21194b5604a 100644
--- a/arch/powerpc/perf/power8-pmu.c
+++ b/arch/powerpc/perf/power8-pmu.c
@@ -378,7 +378,7 @@ static struct power_pmu power8_pmu = {
.bhrb_nr = 32,
};
-int init_power8_pmu(void)
+int __init init_power8_pmu(void)
{
int rc;