From patchwork Tue Feb 21 01:32:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 142220 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 00703B6F62 for ; Tue, 21 Feb 2012 12:34:06 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4B0BD2810C; Tue, 21 Feb 2012 02:34:00 +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 MEkF9BZscbrf; Tue, 21 Feb 2012 02:33:59 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D1D97280D9; Tue, 21 Feb 2012 02:33:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A4697280AD for ; Tue, 21 Feb 2012 02:33:18 +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 gIGYB3eUUfkl for ; Tue, 21 Feb 2012 02:33:18 +0100 (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-gy0-f202.google.com (mail-gy0-f202.google.com [209.85.160.202]) by theia.denx.de (Postfix) with ESMTPS id 5F00B280C2 for ; Tue, 21 Feb 2012 02:33:13 +0100 (CET) Received: by ghrr17 with SMTP id r17so745068ghr.3 for ; Mon, 20 Feb 2012 17:33:12 -0800 (PST) Received-SPF: pass (google.com: domain of sjg@google.com designates 10.236.185.194 as permitted sender) client-ip=10.236.185.194; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sjg@google.com designates 10.236.185.194 as permitted sender) smtp.mail=sjg@google.com Received: from mr.google.com ([10.236.185.194]) by 10.236.185.194 with SMTP id u42mr12614560yhm.4.1329787992811 (num_hops = 1); Mon, 20 Feb 2012 17:33:12 -0800 (PST) Received: by 10.236.185.194 with SMTP id u42mr9014133yhm.4.1329787992795; Mon, 20 Feb 2012 17:33:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.185.194 with SMTP id u42mr9014111yhm.4.1329787992728; Mon, 20 Feb 2012 17:33:12 -0800 (PST) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id d64si12010465yhn.3.2012.02.20.17.33.12 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 20 Feb 2012 17:33:12 -0800 (PST) Received: from sglass.mtv.corp.google.com (sglass.mtv.corp.google.com [172.22.72.144]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 9BC5A100052; Mon, 20 Feb 2012 17:33:12 -0800 (PST) Received: by sglass.mtv.corp.google.com (Postfix, from userid 121222) id 778B7140728; Mon, 20 Feb 2012 17:33:12 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Mon, 20 Feb 2012 17:32:49 -0800 Message-Id: <1329787975-6695-8-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1329787975-6695-1-git-send-email-sjg@chromium.org> References: <1329787975-6695-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQnCp6xKXS6orqwx+b/fHnYuHSc6kwhXP+z+1+PECDFgS3Z3/K0EOx3b7LLAeEgGCTKfytRNLZ6rjI38tnPVcE7jzJ7rnZ1B4gxhqgWkG/lv3A4Vhz3OBEtdfXWNqBxSeRCQesZXAYqWv4NY3OiRrkMGFwwDQmivdSQbkNYLH14uRuOKaYI= Cc: Sandeep Paulraj , Tom Rini Subject: [U-Boot] [PATCH v4 07/13] davinci: Use correct #ifdef around gdata/bdata 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This fixes the following warnings in an SPL build when libcommon is in use: spl.c:37: warning: 'gdata' defined but not used spl.c:38: warning: 'bdata' defined but not used Signed-off-by: Simon Glass Acked-by: Tom Rini --- Changes in v4: - Add new patch to fix davinci build warnings arch/arm/cpu/arm926ejs/davinci/spl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/davinci/spl.c b/arch/arm/cpu/arm926ejs/davinci/spl.c index b1eff26..2861907 100644 --- a/arch/arm/cpu/arm926ejs/davinci/spl.c +++ b/arch/arm/cpu/arm926ejs/davinci/spl.c @@ -32,10 +32,12 @@ #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT +#ifdef CONFIG_SPL_SPI_LOAD DECLARE_GLOBAL_DATA_PTR; /* Define global data structure pointer to it*/ static gd_t gdata __attribute__ ((section(".data"))); static bd_t bdata __attribute__ ((section(".data"))); +#endif #else