From patchwork Mon Jan 3 15:47:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Lo=C3=AFc_Minier?= X-Patchwork-Id: 77287 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 55AA7B70EF for ; Tue, 4 Jan 2011 02:47:47 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 98348281C6; Mon, 3 Jan 2011 16:47:45 +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 F7yHTb-pqeMf; Mon, 3 Jan 2011 16:47:45 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D2CBE281AE; Mon, 3 Jan 2011 16:47:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3E9CB281AE for ; Mon, 3 Jan 2011 16:47:42 +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 ITmhJL-aVMWx for ; Mon, 3 Jan 2011 16:47:40 +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 duck.dooz.org (duck.dooz.org [194.146.227.125]) by theia.denx.de (Postfix) with ESMTP id 064AA281A5 for ; Mon, 3 Jan 2011 16:47:38 +0100 (CET) Received: from bee.dooz.org (serris.dooz.org [88.166.229.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by duck.dooz.org (Postfix) with ESMTP id 45436C80A4; Mon, 3 Jan 2011 16:47:38 +0100 (CET) Received: by bee.dooz.org (Postfix, from userid 1000) id 8B9041036; Mon, 3 Jan 2011 16:47:36 +0100 (CET) From: =?UTF-8?q?Lo=C3=AFc=20Minier?= To: u-boot@lists.denx.de Date: Mon, 3 Jan 2011 16:47:32 +0100 Message-Id: <1294069652-9114-1-git-send-email-loic.minier@linaro.org> X-Mailer: git-send-email 1.7.2.3 MIME-Version: 1.0 Cc: =?UTF-8?q?Lo=C3=AFc=20Minier?= Subject: [U-Boot] [PATCH] Use sizeof(gd_t), not sizeof(struct global_data) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 The eNET (x86) build fails with "invalid application of 'sizeof' to incomplete type 'struct global_data'" because x86 doesn't define struct global_data. Change sizeof(struct global_data) to sizeof(gd_t) which is always available. Cc: Graeme Russ Signed-off-by: Loïc Minier --- lib/asm-offsets.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c index 2209561..6a4084e 100644 --- a/lib/asm-offsets.c +++ b/lib/asm-offsets.c @@ -23,7 +23,7 @@ int main(void) { /* Round up to make sure size gives nice stack alignment */ DEFINE(GENERATED_GBL_DATA_SIZE, - (sizeof(struct global_data)+15) & ~15); + (sizeof(gd_t)+15) & ~15); return 0; }