Skip to content

Commit

Permalink
MIPS: PNX8550: Fix section mismatch
Browse files Browse the repository at this point in the history
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 <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 20, 2011
1 parent 5db6acd commit cba2efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/pnx8550/common/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ typedef struct
}t_env_var;


char * prom_getcmdline(void)
char * __init prom_getcmdline(void)
{
return &(arcs_cmdline[0]);
}
Expand Down

0 comments on commit cba2efb

Please sign in to comment.