Skip to content

Commit

Permalink
mbuf: fix missing header include
Browse files Browse the repository at this point in the history
[ upstream commit b7c0591 ]

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: 4958ca3 ("mbuf: support dynamic fields and flags")
Fixes: 3eb860b ("mbuf: move definitions into a separate file")

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>
  • Loading branch information
bruce-richardson authored and bluca committed Feb 4, 2021
1 parent dcec6bc commit d46998a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/librte_mbuf/rte_mbuf_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
*/

#include <stdint.h>

#include <rte_compat.h>
#include <rte_byteorder.h>
#include <generic/rte_atomic.h>

#ifdef __cplusplus
Expand Down
4 changes: 4 additions & 0 deletions lib/librte_mbuf/rte_mbuf_dyn.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@
* - 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
Expand Down

0 comments on commit d46998a

Please sign in to comment.