From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Mon, 3 Jan 2011 18:00:36 +0100 Subject: [U-Boot] [PATCH 2/2] i386: Define struct global_data as on other arches In-Reply-To: <1294069652-9114-1-git-send-email-loic.minier@linaro.org> References: <1294069652-9114-1-git-send-email-loic.minier@linaro.org> Message-ID: <1294074036-11743-1-git-send-email-loic.minier@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The eNET (x86) build was failing to build with "invalid application of 'sizeof' to incomplete type 'struct global_data'" because x86 didn't define struct global_data. lib/asm-offsets.c was changed to use sizeof(gd_t) as gd_t is more commonly used outside of arch/*/include/asm/global_data.h, but it is still useful to define struct global_data in arch/i386/include/asm/global_data.h for consistency. Signed-off-by: Lo?c Minier Cc: Graeme Russ --- arch/i386/include/asm/global_data.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/i386/include/asm/global_data.h b/arch/i386/include/asm/global_data.h index e3f8a25..6b7e101 100644 --- a/arch/i386/include/asm/global_data.h +++ b/arch/i386/include/asm/global_data.h @@ -35,7 +35,7 @@ #ifndef __ASSEMBLY__ -typedef struct { +typedef struct global_data { bd_t *bd; unsigned long flags; unsigned long baudrate; -- 1.7.2.3