summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/ps3/smp.c
diff options
context:
space:
mode:
authorNick Child <nick.child@ibm.com>2021-12-17 01:00:28 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-23 14:33:16 +0300
commitf1ba9b9474a9e32b9c173c91e71f713bfa7b2463 (patch)
tree14002bfe461981da159bb58a694b5e667e68dd02 /arch/powerpc/platforms/ps3/smp.c
parente14ff96d08f0ade9dd33081d909ad65a02a858c1 (diff)
downloadlinux-f1ba9b9474a9e32b9c173c91e71f713bfa7b2463.tar.xz
powerpc/ps3: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/ps3' 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-14-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/platforms/ps3/smp.c')
-rw-r--r--arch/powerpc/platforms/ps3/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/ps3/smp.c b/arch/powerpc/platforms/ps3/smp.c
index 93b1e73b3529..85295756005a 100644
--- a/arch/powerpc/platforms/ps3/smp.c
+++ b/arch/powerpc/platforms/ps3/smp.c
@@ -112,7 +112,7 @@ static struct smp_ops_t ps3_smp_ops = {
.kick_cpu = smp_generic_kick_cpu,
};
-void smp_init_ps3(void)
+void __init smp_init_ps3(void)
{
DBG(" -> %s\n", __func__);
smp_ops = &ps3_smp_ops;