Skip to content

Commit

Permalink
powerpc/ps3: Add __init to ps3_smp_probe
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
glevand authored and ozbenh committed Dec 8, 2011
1 parent 4bf94ae commit b9ec60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/ps3/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b9ec60d

Please sign in to comment.