From: Ralf Baechle Date: Thu, 28 Jul 2011 15:15:46 +0000 (+0100) Subject: MIPS: PNX8550: Fix section mismatch X-Git-Tag: next-20110729~73^2~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d2b2a77ee87d8fed5802d68d8a08e0025c1ad21;p=karo-tx-linux.git MIPS: PNX8550: Fix section mismatch Triggered by pnx8550-jbs_defconfig and pnx8550-stb810_defconfig: WARNING: vmlinux.o(.text+0xc0c): Section mismatch in reference from the function prom_getcmdline() to the variable .init.data:arcs_cmdline The function prom_getcmdline() references the variable __initdata arcs_cmdline. This is often because prom_getcmdline lacks a __initdata annotation or the annotation of arcs_cmdline is wrong. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/pnx8550/common/prom.c b/arch/mips/pnx8550/common/prom.c index 32f70097c3c7..49639e8120d8 100644 --- a/arch/mips/pnx8550/common/prom.c +++ b/arch/mips/pnx8550/common/prom.c @@ -30,7 +30,7 @@ typedef struct }t_env_var; -char * prom_getcmdline(void) +char * __init prom_getcmdline(void) { return &(arcs_cmdline[0]); }