From patchwork Wed Oct 16 04:53:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 283840 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id C38002C00C6 for ; Wed, 16 Oct 2013 15:54:14 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 82F3D4A09B; Wed, 16 Oct 2013 06:54:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kj+xZwAO8pc7; Wed, 16 Oct 2013 06:54:00 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 236804A0CF; Wed, 16 Oct 2013 06:53:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3FED54A09C for ; Wed, 16 Oct 2013 06:53:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ApJ+DbOG-R6v for ; Wed, 16 Oct 2013 06:53:39 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=SKIP(-1.5) (only DNSBL check requested) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by theia.denx.de (Postfix) with ESMTP id 8EA9D4A099 for ; Wed, 16 Oct 2013 06:53:35 +0200 (CEST) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile14) with ESMTP id r9G4rH1P014094 for ; Wed, 16 Oct 2013 13:53:17 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili14) with ESMTP id r9G4rIL25162 for ; Wed, 16 Oct 2013 13:53:18 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi13) id r9G4rIfX009371; Wed, 16 Oct 2013 13:53:18 +0900 Received: from poodle by lomi13.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id r9G4rHX1009350; Wed, 16 Oct 2013 13:53:17 +0900 Received: from beagle.diag.org (beagle.diag.org [10.184.179.16]) by poodle (Postfix) with ESMTP id B5F862743A5C; Wed, 16 Oct 2013 13:53:17 +0900 (JST) From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 16 Oct 2013 13:53:03 +0900 Message-Id: <1381899184-23315-3-git-send-email-yamada.m@jp.panasonic.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1381899184-23315-1-git-send-email-yamada.m@jp.panasonic.com> References: <1381899184-23315-1-git-send-email-yamada.m@jp.panasonic.com> Subject: [U-Boot] [PATCH 2/3] m68k: eliminate warnings in do_bootm_linux function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de - delete an unused variable - set forcibly some variables to zero Signed-off-by: Masahiro Yamada --- *** 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