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

powerpc/ps3: Add __init to ps3_smp_probe

Add an __init annotation to the ps3_smp_probe() routine.
Fixes build warnings like these when
CONFIG_DEBUG_SECTION_MISMATCH=y:

WARNING: Section mismatch in reference from the function .ps3_smp_probe()

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Geoff Levand and committed by
Benjamin Herrenschmidt
b9ec60dc 4bf94ae3

+1 -1
+1 -1
arch/powerpc/platforms/ps3/smp.c
··· 57 57 " (%d)\n", __func__, __LINE__, cpu, msg, result); 58 58 } 59 59 60 - static int ps3_smp_probe(void) 60 + static int __init ps3_smp_probe(void) 61 61 { 62 62 int cpu; 63 63