| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 05/10] Loongson: Move prom_argc and prom_argv into prom_init_cmdline() |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Mon, 4 Jan 2010 17:16:47 +0800 |
| Cc: | linux-mips@linux-mips.org, yanh@lemote.com, huhb@lemote.com, zhangfx@lemote.com, Wu Zhangjin <wuzhangjin@gmail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=GS0exdFuxNKa8hWu/444H55EVRz3Q5FgpimvJihM/AY=; b=eKAVIpfxLV0xS6QX8e8m7q7U/xcOYPa746J152Soi5zpYhIWHfEfJXmaJ0oTr3paP5 v27VyrUY9xTHBLg1aPHl5UvmNlrCvPYvdQiPMSxwhADQii8ktvstMa1yerjP+ZRHPiVy E1UBjBLn9zadS5rp9Ak7d2EtvsNs/cVIPgQ1Q= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Mlidzwc8IZWbIr3kbb0QH1tnwxZGMLcy8gjCSuFxQ2aPEc2LghhCxL+pdmSVHR3Ia4 T9OQ3DpQnB6Rav8BdFaQzQ+Kgi8Im1fZ3/y5kGUTs5C4ttQXLRXPrakQeRnNtScM58wy J93J8uJX/p6ESTD/XqBZfGswxGsigQtOAfTFE= |
| In-reply-to: | <dc64ae336edaf61405e56534e33fe40c49694378.1262596493.git.wuzhangjin@gmail.com> |
| In-reply-to: | <cover.1262596493.git.wuzhangjin@gmail.com> |
| References: | <cover.1262586650.git.wuzhangjin@gmail.com> <f4aeb125cb030f10d34966febfe9715874d52ab2.1262596493.git.wuzhangjin@gmail.com> <669ff2f39fd2aa3849e472438d3d9d499c8f0e3a.1262596493.git.wuzhangjin@gmail.com> <9bcc0f00c46fdf5c832ce3bdd0df8d7f08b7a1be.1262596493.git.wuzhangjin@gmail.com> <dc64ae336edaf61405e56534e33fe40c49694378.1262596493.git.wuzhangjin@gmail.com> |
| References: | <cover.1262596493.git.wuzhangjin@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Wu Zhangjin <wuzhangjin@gmail.com>
prom_argc and prom_argv are only used by prom_init_cmdline(), move them
into the function.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/loongson/common/cmdline.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
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 <loongson.h>
-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;
--
1.6.5.6
|
| Previous by Date: | [PATCH 04/10] Loongson: Remove the serial port output of compressed kernel support, Wu Zhangjin |
|---|---|
| Next by Date: | [PATCH 06/10] Loongson: Cleanup of the environment variables, Wu Zhangjin |
| Previous by Thread: | [PATCH 04/10] Loongson: Remove the serial port output of compressed kernel support, Wu Zhangjin |
| Next by Thread: | [PATCH 06/10] Loongson: Cleanup of the environment variables, Wu Zhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |