From: Geoff Levand Date: Tue, 29 Nov 2011 15:38:50 +0000 (+0000) Subject: powerpc/ps3: Add __init to ps3_smp_probe X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b9ec60dc35bba431f0913f628bfd590cb4666ff7;p=~shefty%2Frdma-dev.git 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 Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/platforms/ps3/smp.c b/arch/powerpc/platforms/ps3/smp.c index efc1cd8c034..4b35166229f 100644 --- a/arch/powerpc/platforms/ps3/smp.c +++ b/arch/powerpc/platforms/ps3/smp.c @@ -57,7 +57,7 @@ static void ps3_smp_message_pass(int cpu, int msg) " (%d)\n", __func__, __LINE__, cpu, msg, result); } -static int ps3_smp_probe(void) +static int __init ps3_smp_probe(void) { int cpu;