From: Stephen Rothwell Date: Tue, 31 Jul 2007 07:22:00 +0000 (+1000) Subject: [POWERPC] ps3: Fix section mismatch in ps3/setup.c X-Git-Tag: v3.12-rc1~27280^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cba684f56d7e8b82b08d4372375a42d6ebeab47d;p=kernel%2Fkernel-generic.git [POWERPC] ps3: Fix section mismatch in ps3/setup.c WARNING: vmlinux.o(.text+0x605d4): Section mismatch: reference to .init.text:.__alloc_bootmem (between '.prealloc' and '.ps3_power_save') Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index aa05288..2952b22 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c @@ -109,7 +109,7 @@ static void ps3_panic(char *str) #if defined(CONFIG_FB_PS3) || defined(CONFIG_FB_PS3_MODULE) || \ defined(CONFIG_PS3_FLASH) || defined(CONFIG_PS3_FLASH_MODULE) -static void prealloc(struct ps3_prealloc *p) +static void __init prealloc(struct ps3_prealloc *p) { if (!p->size) return;