mbuf: fix missing header include
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 15 Jan 2021 11:10:37 +0000 (11:10 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 21 Jan 2021 09:21:40 +0000 (10:21 +0100)
The rte_mbuf_dyn.h header file uses a number of types and macros without
including the required header files to get the definitions of those
macros/types.  Similarly, the rte_mbuf_core.h file was missing an
include for rte_byteorder.h header.

Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags")
Fixes: 3eb860b08eb7 ("mbuf: move definitions into a separate file")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_mbuf/rte_mbuf_core.h
lib/librte_mbuf/rte_mbuf_dyn.h

index 567551d..a85cabd 100644 (file)
@@ -17,7 +17,9 @@
  */
 
 #include <stdint.h>
+
 #include <rte_compat.h>
+#include <rte_byteorder.h>
 #include <generic/rte_atomic.h>
 
 #ifdef __cplusplus
index fc4eee7..13f06d8 100644 (file)
  * - any name that does not start with "rte_" in an application
  */
 
+#include <stdio.h>
+#include <stdint.h>
 #include <sys/types.h>
 
+#include <rte_compat.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif