[PATCH 4/4] of/fdt: add kernel command line option for dtb_compat string
H. Peter Anvin
hpa at linux.intel.com
Tue Nov 16 11:27:06 EST 2010
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.
-hpa
More information about the devicetree-discuss
mailing list