MIPS: jz4740: Fix section mismatch in prom.c

This patch fixes the following section mismatch:

	WARNING: arch/mips/built-in.o(.text+0xc): Section mismatch in reference from the
	function jz4740_init_cmdline() to the variable .init.data:arcs_cmdline

While were at it, make jz4740_init_cmdline static as well.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1755/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Lars-Peter Clausen 2010-11-04 23:25:57 +01:00 committed by Ralf Baechle
parent fe749aab1d
commit 1d210386f6

View File

@ -23,7 +23,7 @@
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <asm/mach-jz4740/base.h> #include <asm/mach-jz4740/base.h>
void jz4740_init_cmdline(int argc, char *argv[]) static __init void jz4740_init_cmdline(int argc, char *argv[])
{ {
unsigned int count = COMMAND_LINE_SIZE - 1; unsigned int count = COMMAND_LINE_SIZE - 1;
int i; int i;