From patchwork Fri Dec 9 23:19:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Bendebury X-Patchwork-Id: 130492 X-Patchwork-Delegate: graeme.russ@gmail.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 B027D1007D7 for ; Sat, 10 Dec 2011 10:25:54 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2DFB72820F; Sat, 10 Dec 2011 00:25:52 +0100 (CET) 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 3iLpWrL-tFR8; Sat, 10 Dec 2011 00:25:51 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A8E7728213; Sat, 10 Dec 2011 00:25:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8F33A28213 for ; Sat, 10 Dec 2011 00:25:47 +0100 (CET) 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 VOmY6PLU+sMd for ; Sat, 10 Dec 2011 00:25:46 +0100 (CET) X-Greylist: delayed 373 seconds by postgrey-1.27 at theia; Sat, 10 Dec 2011 00:25:44 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f74.google.com (mail-ee0-f74.google.com [74.125.83.74]) by theia.denx.de (Postfix) with ESMTPS id E72D32820F for ; Sat, 10 Dec 2011 00:25:44 +0100 (CET) Received: by eekc14 with SMTP id c14so78020eek.3 for ; Fri, 09 Dec 2011 15:25:44 -0800 (PST) Received: by 10.14.19.205 with SMTP id n53mr491796een.6.1323472771365; Fri, 09 Dec 2011 15:19:31 -0800 (PST) Received: by 10.14.19.205 with SMTP id n53mr491789een.6.1323472771246; Fri, 09 Dec 2011 15:19:31 -0800 (PST) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id q50si6836331eef.3.2011.12.09.15.19.31 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 09 Dec 2011 15:19:31 -0800 (PST) Received: from wpaz9.hot.corp.google.com (wpaz9.hot.corp.google.com [172.24.198.73]) by hpza10.eem.corp.google.com (Postfix) with ESMTPS id 065E6200057; Fri, 9 Dec 2011 15:19:30 -0800 (PST) Received: from eskimo.mtv.corp.google.com (eskimo.mtv.corp.google.com [172.22.73.75]) by wpaz9.hot.corp.google.com with ESMTP id pB9NJQVN014123; Fri, 9 Dec 2011 15:19:27 -0800 Received: by eskimo.mtv.corp.google.com (Postfix, from userid 41370) id 6C7474099F; Fri, 9 Dec 2011 15:19:26 -0800 (PST) To: u-boot@lists.denx.de From: Vadim Bendebury Message-Id: <20111209231926.6C7474099F@eskimo.mtv.corp.google.com> Date: Fri, 9 Dec 2011 15:19:26 -0800 (PST) X-System-Of-Record: true Cc: {Vadim Bendebury , }@google.com Subject: [U-Boot] [PATCH] Fix compilation warnings when building eNET 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 There have been a couple of unused variable cases, causing compilation warnings when building the eNET target. While the board/eNET/eNET.c:last_stage_init() case seems a leftover from a quick edit, the arch/x86/cpu/sc520/sc520_timer.c:sc520_udelay() seems to actually require accessing the registers discarding the values. The source code is being modified accordingly. TEST: - the eNET target now builds cleanly - examining disassembled sc520_timer.o shows that the registers are still being accessed in the beginning of the function. Signed-off-by: Vadim Bendebury --- arch/x86/cpu/sc520/sc520_timer.c | 1 + board/eNET/eNET.c | 5 ----- 2 files changed, 1 insertions(+), 5 deletions(-) diff --git a/arch/x86/cpu/sc520/sc520_timer.c b/arch/x86/cpu/sc520/sc520_timer.c index 495a694..a7bbe92 100644 --- a/arch/x86/cpu/sc520/sc520_timer.c +++ b/arch/x86/cpu/sc520/sc520_timer.c @@ -87,4 +87,5 @@ void sc520_udelay(unsigned long usec) m += readw(&sc520_mmcr->swtmrmilli); u = readw(&sc520_mmcr->swtmrmicro) + (m * 1000); } while (u < usec); + (void) temp; } diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c index 429fe1b..2f26470 100644 --- a/board/eNET/eNET.c +++ b/board/eNET/eNET.c @@ -178,11 +178,6 @@ void show_boot_progress(int val) int last_stage_init(void) { - int minor; - int major; - - major = minor = 0; - outb(0x00, LED_LATCH_ADDRESS); register_timer_isr(enet_timer_isr);