The header mbuf_log.h depends on rte_log.h, so it should include it. After this move, no need to include rte_log.h in addition of mbuf_log.h.
Signed-off-by: Thomas Monjalon <[email protected]> Reviewed-by: Morten Brørup <[email protected]> --- lib/mbuf/mbuf_log.h | 2 ++ lib/mbuf/rte_mbuf.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mbuf/mbuf_log.h b/lib/mbuf/mbuf_log.h index 8feaf20747..f163cbd71c 100644 --- a/lib/mbuf/mbuf_log.h +++ b/lib/mbuf/mbuf_log.h @@ -1,5 +1,7 @@ /* SPDX-License-Identifier: BSD-3-Clause */ +#include <rte_log.h> + extern int mbuf_logtype; #define RTE_LOGTYPE_MBUF mbuf_logtype #define MBUF_LOG(level, ...) \ diff --git a/lib/mbuf/rte_mbuf.c b/lib/mbuf/rte_mbuf.c index 9e7731a8a2..22d7cfc475 100644 --- a/lib/mbuf/rte_mbuf.c +++ b/lib/mbuf/rte_mbuf.c @@ -12,7 +12,6 @@ #include <eal_export.h> #include <rte_debug.h> #include <rte_common.h> -#include <rte_log.h> #include <rte_branch_prediction.h> #include <rte_mempool.h> #include <rte_mbuf.h> -- 2.51.0

