[U-Boot] [PATCH] Use sizeof(gd_t), not sizeof(struct global_data)

Mike Frysinger vapier at gentoo.org
Mon Jan 3 17:35:10 CET 2011


On Mon, Jan 3, 2011 at 10:47 AM, Loïc Minier wrote:
> 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.

why not change x86's global_data.h to define the struct ?  all other
arches define 'struct global_data'.
-mike


More information about the U-Boot mailing list