[U-Boot] [PATCH 2/2] i386: Define struct global_data as on other arches

Loïc Minier loic.minier at linaro.org
Mon Jan 3 18:00:36 CET 2011


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 <loic.minier at linaro.org>
Cc: Graeme Russ <graeme.russ at gmail.com>
---
 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



More information about the U-Boot mailing list