From patchwork Mon Aug 6 07:46:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 175279 X-Patchwork-Delegate: vapier@gentoo.org 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 161462C0098 for ; Mon, 6 Aug 2012 17:47:16 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B41B42812F; Mon, 6 Aug 2012 09:47:09 +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 fBILyKpnz2Jv; Mon, 6 Aug 2012 09:47:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 27BD028131; Mon, 6 Aug 2012 09:47:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 027D4280AD for ; Mon, 6 Aug 2012 09:46:59 +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 lQJVmodBzJOR for ; Mon, 6 Aug 2012 09:46:55 +0200 (CEST) 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-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by theia.denx.de (Postfix) with ESMTPS id BD16F280B6 for ; Mon, 6 Aug 2012 09:46:54 +0200 (CEST) Received: by wibhr14 with SMTP id hr14so1167593wib.9 for ; Mon, 06 Aug 2012 00:46:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=QXbkYCCXmzcptM8mjTS0WABXD2En4eyJ/fGDGPz0WgY=; b=iGcbzDOrFlNpGykD36KD9Zi6uODOnMoisZfMRnr9+aXYZd2eUG20BJLKr9+9a2ctyd k5p72zsDnqJvRfMPAUIwNVM6CPDR5rDLmpYWbfB4MtlZvEXgt3dla9905LLCaU290Jlv E1eSQkEYuo/ttpyYPNd3oPIbunlZAePWX1Y9/sNSbJaOiFA122F1GxNsiT6qOd4Y8Hyb ymMg9qxByubw98XBREfzIE96URObvhacmnmOz1NTQ/OMz9G5XTejgk3CC/VGSS5uKwNS 3HFNZeJpQIG0PkzhrjdYmZYsia89tMiVUR8HxN+6FPyq0JY68iGBoN5VuHXFypn1tgl8 9GMw== Received: by 10.180.97.33 with SMTP id dx1mr16121648wib.18.1344239213922; Mon, 06 Aug 2012 00:46:53 -0700 (PDT) Received: from localhost (nat-2.starnet.cz. [92.62.224.2]) by mx.google.com with ESMTPS id l6sm14262409wiz.4.2012.08.06.00.46.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Aug 2012 00:46:53 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Mon, 6 Aug 2012 09:46:34 +0200 Message-Id: <1344239199-11445-2-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1344239199-11445-1-git-send-email-monstr@monstr.eu> References: <1344239199-11445-1-git-send-email-monstr@monstr.eu> X-Gm-Message-State: ALoCoQm/6juDjPNXjj734hOdvRCCNj/OAnMvsOQA9SYeD4q4+oiXt8Dl4kJKy+L6AxwQNMQuRgP5 Cc: linz@li-pro.net Subject: [U-Boot] [PATCH v2 2/7] microblaze: board: Remove compilation warning 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 Variable is used when CONFIG_SYS_FLASH_CHECKSUM is used. Warning log: board.c: In function 'board_init': board.c:101: warning: unused variable 's' Signed-off-by: Michal Simek Acked-by: Stephan Linz --- v2: Use __mabe_unused prefix --- arch/microblaze/lib/board.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c index 942e18c..b5f21d8 100644 --- a/arch/microblaze/lib/board.c +++ b/arch/microblaze/lib/board.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -91,7 +92,7 @@ void board_init (void) gd = (gd_t *) (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET); bd = (bd_t *) (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \ - GENERATED_BD_INFO_SIZE); - char *s; + __maybe_unused char *s; #if defined(CONFIG_CMD_FLASH) ulong flash_size = 0; #endif