[PATCH 4/4] of/fdt: add kernel command line option for dtb_compat string

Grant Likely grant.likely at secretlab.ca
Tue Nov 16 17:34:40 EST 2010


On Mon, Nov 15, 2010 at 04:27:06PM -0800, H. Peter Anvin wrote:
> On 11/13/2010 10:22 PM, Grant Likely wrote:
> > 
> > 'char' is completely bogus in this context.  Either void or struct
> > boot_param_header would be more accurate and useful.  I believe you
> > can do:
> > 
> > 	extern void __dtb_start;
> > 	extern_void __dtb_end;
> > 
> > And then reference the addresses with &__dtb_start and &__dtb_end.
> > That would eliminate a lot of the casting below.
> > 
> 
> Except that doesn't work with gcc 4.5+; you really need to use an array
> type.

heh.  Oh well, an array it must be then.

g.


More information about the devicetree-discuss mailing list