Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Nick Child and committed by
Michael Ellerman
456e8eb3 6c552983

+2 -2
+1 -1
arch/powerpc/include/asm/xmon.h
··· 12 12 13 13 #ifdef CONFIG_XMON 14 14 extern void xmon_setup(void); 15 - extern void xmon_register_spus(struct list_head *list); 15 + void __init xmon_register_spus(struct list_head *list); 16 16 struct pt_regs; 17 17 extern int xmon(struct pt_regs *excp); 18 18 extern irqreturn_t xmon_irq(int, void *);
+1 -1
arch/powerpc/xmon/xmon.c
··· 4136 4136 4137 4137 static struct spu_info spu_info[XMON_NUM_SPUS]; 4138 4138 4139 - void xmon_register_spus(struct list_head *list) 4139 + void __init xmon_register_spus(struct list_head *list) 4140 4140 { 4141 4141 struct spu *spu; 4142 4142