From: Wu Zhangjin Date: Mon, 4 Jan 2010 09:16:47 +0000 (+0800) Subject: MIPS: Loongson: Move prom_argc and prom_argv into prom_init_cmdline() X-Git-Tag: v3.12-rc1~11282^2~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97e6a89634befaf5bd66d3044d36961c887cd98c;p=kernel%2Fkernel-generic.git MIPS: Loongson: Move prom_argc and prom_argv into prom_init_cmdline() prom_argc and prom_argv are only used by prom_init_cmdline(), move them into the function. Signed-off-by: Wu Zhangjin Cc: linux-mips@linux-mips.org Cc: yanh@lemote.com Cc: huhb@lemote.com Cc: zhangfx@lemote.com Patchwork: http://patchwork.linux-mips.org/patch/825/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/loongson/common/cmdline.c b/arch/mips/loongson/common/cmdline.c index 7ad47f2..9e32837 100644 --- a/arch/mips/loongson/common/cmdline.c +++ b/arch/mips/loongson/common/cmdline.c @@ -21,12 +21,11 @@ #include -int prom_argc; -/* pmon passes arguments in 32bit pointers */ -int *_prom_argv; - void __init prom_init_cmdline(void) { + int prom_argc; + /* pmon passes arguments in 32bit pointers */ + int *_prom_argv; int i; long l;