
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@linaro.org Cc: Graeme Russ graeme.russ@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;