aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/xmon
diff options
context:
space:
mode:
authorGravatar Nick Child <nick.child@ibm.com> 2021-12-16 17:00:21 -0500
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2021-12-23 22:33:12 +1100
commit456e8eb324a47573b377f7041f4c038fac403f86 (patch)
treebb9c4b81a36ea47b067177a4832de26838de66a5 /arch/powerpc/xmon
parentpowerpc/sysdev: Add __init attribute to eligible functions (diff)
downloadlinux-456e8eb324a47573b377f7041f4c038fac403f86.tar.gz
linux-456e8eb324a47573b377f7041f4c038fac403f86.tar.bz2
linux-456e8eb324a47573b377f7041f4c038fac403f86.zip
powerpc/xmon: Add __init attribute to eligible functions
`xmon_register_spus` defined in 'arch/powerpc/xmon' is deserving of an `__init` macro attribute. This functions is only called by other initialization functions and therefore should inherit the attribute. Also, change the function declaration in the header file 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-7-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r--arch/powerpc/xmon/xmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index f9ae0b398260..f51d7404a6ea 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -4136,7 +4136,7 @@ struct spu_info {
static struct spu_info spu_info[XMON_NUM_SPUS];
-void xmon_register_spus(struct list_head *list)
+void __init xmon_register_spus(struct list_head *list)
{
struct spu *spu;