>>> On 29.03.17 at 00:08, <sstabell...@kernel.org> wrote: > --- a/xen/include/public/io/ring.h > +++ b/xen/include/public/io/ring.h > @@ -27,6 +27,21 @@ > #ifndef __XEN_PUBLIC_IO_RING_H__ > #define __XEN_PUBLIC_IO_RING_H__ > > +/* > + * When #include'ing this header, you need to provide the following > + * declaration upfront: > + * - standard integers types (uint8_t, uint16_t, etc) > + * They are provided by stdint.h of the standard headers. > + * > + * In addition, if you intend to use the FLEX macros, you also need to > + * provide: > + * - size_t > + * - memcpy > + * - grant_ref_t > + * These declarations are provided by string.h of the standard headers, > + * and grant_table.h from the Xen public headers. > + */
Btw, there's another difference only implied so far: The integer types indeed need to be made available up front (as spelled out). The others can as well be made available after ring.h inclusion, as long as that happens before invoking any of the macros. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel