On Fri, Sep 28, 2007 at 03:13:22PM +1000, Stephen Rothwell wrote: > On Fri, 28 Sep 2007 14:52:06 +1000 David Gibson <[EMAIL PROTECTED]> wrote: > > > > libfdt.h currently includes fdt.h, then libfdt_env.h. This is > > incorrect, because depending on the environment into which libfdt is > > embedded, libfdt_env.h may be needed to define datatypes used in > > fdt.h. This patch corrects the problem. > > So why doesn't fdt.h include libfdt_env.h, then?
Because libfdt_env.h is specifically for libfdt, whereas fdt.h contains passive structures only, related to the flat tree structure but without reference to any particular code for handling it. Basically, fdt.h includes no other headers as a compromise to make it more easily usable in various contexts. In fact the only thing it needs is the C99 fixed-width integer types, but I want it to be also usable in contexts which don't have a <stdint.h> (e.g. the kernel bootwrapper). -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: Digital signature
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev