From c48d8c316424ddf7ae1ddd2fa1fa940cf45eb8c3 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Thu, 4 Feb 2021 11:05:19 +0100 Subject: [PATCH] mbuf: remove unneeded atomic generic header include There is no need for the direct inclusion of the generic/ header [1] now that we don't use the rte_atomic API anymore. It was the last case of direct inclusion of the generic/ headers, so the flag -Wno-unused-function can be dropped. 1: https://git.dpdk.org/dpdk/commit/?id=3eb860b08eb7 Fixes: e41d27a68df6 ("mbuf: remove atomic reference counters") Cc: stable@dpdk.org Signed-off-by: David Marchand Reviewed-by: Ruifeng Wang Acked-by: Andrew Rybchenko Acked-by: Bruce Richardson --- buildtools/chkincs/meson.build | 1 - lib/librte_mbuf/rte_mbuf_core.h | 1 - 2 files changed, 2 deletions(-) diff --git a/buildtools/chkincs/meson.build b/buildtools/chkincs/meson.build index f345e87551..f28cfd3cd4 100644 --- a/buildtools/chkincs/meson.build +++ b/buildtools/chkincs/meson.build @@ -17,7 +17,6 @@ gen_c_files = generator(gen_c_file_for_header, arguments: ['@INPUT@', '@OUTPUT@']) cflags = machine_args -cflags += '-Wno-unused-function' # needed if we include generic headers cflags += '-DALLOW_EXPERIMENTAL_API' sources = files('main.c') diff --git a/lib/librte_mbuf/rte_mbuf_core.h b/lib/librte_mbuf/rte_mbuf_core.h index a85cabdd18..9d1609336a 100644 --- a/lib/librte_mbuf/rte_mbuf_core.h +++ b/lib/librte_mbuf/rte_mbuf_core.h @@ -20,7 +20,6 @@ #include #include -#include #ifdef __cplusplus extern "C" {