[U-Boot] [PATCH 2/3] m68k: eliminate warnings in do_bootm_linux function
Masahiro Yamada
yamada.m at jp.panasonic.com
Wed Oct 16 06:53:03 CEST 2013
- delete an unused variable
- set forcibly some variables to zero
Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---
*** CAUTION ***
I do not think I am doing right thing.
(I post this patch just to raise the flag.)
Experts of M68K architecture, please fix this correctly.
arch/m68k/lib/bootm.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/m68k/lib/bootm.c b/arch/m68k/lib/bootm.c
index 804e01d..e71f593 100644
--- a/arch/m68k/lib/bootm.c
+++ b/arch/m68k/lib/bootm.c
@@ -50,7 +50,6 @@ void arch_lmb_reserve(struct lmb *lmb)
int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images)
{
- ulong rd_len;
ulong initrd_start, initrd_end;
int ret;
@@ -87,6 +86,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
+ /* Workaround to eliminate warnings: FIX ME */
+ initrd_start = 0;
+ initrd_end = 0;
+ cmd_start = 0;
+ cmd_end = 0;
+
/*
* Linux Kernel Parameters (passing board info data):
* sp+00: Ignore, side effect of using jsr to jump to kernel
--
1.8.1.2
More information about the U-Boot
mailing list