On 25/05/15 14:23, Bruce Richardson wrote: > The file rte_kni.h depends upon a number of other headers, some of which > are missing from the #include lines. The following #includes are added: > * rte_memory.h - for the definition of phys_addr_t > * rte_mempool.h - for the definition of mempool struct and the mempool > create function. > > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com> > --- > lib/librte_kni/rte_kni.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h > index 98edd72..44240fe 100644 > --- a/lib/librte_kni/rte_kni.h > +++ b/lib/librte_kni/rte_kni.h > @@ -47,6 +47,8 @@ > */ > > #include <rte_pci.h> > +#include <rte_memory.h> > +#include <rte_mempool.h> > > #include <exec-env/rte_kni_common.h> >
A fwd declaration of struct rte_mempool would be sufficient, but Acked-by: Marc Sune <marc.sune at bisdn.de>