[U-Boot] [PATCH 3/3 v2] Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value

Alessandro Rubini rubini-list at gnudd.com
Tue Oct 26 23:40:42 CEST 2010


> I am not convinced, as we don't have an array context here.

But sizeof(struct x) doesn't depend on how struct x is used.
You can declare a pointer and then allocate for an array.

> I don't see that with
> 
> 	struct foo x;
> 	struct foo y[N];
> 
> we have a guarantee that sizeof(x) == sizeof(y[0]). 

Yes, I see this requirement. But maybe we're already bikeshedding:
I won't get offended if you keep the global +15 & ~15.

regards
/alessandro


More information about the U-Boot mailing list