mbuf: remove unneeded atomic generic header include
authorDavid Marchand <david.marchand@redhat.com>
Thu, 4 Feb 2021 10:05:19 +0000 (11:05 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 Feb 2021 18:49:32 +0000 (19:49 +0100)
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 <david.marchand@redhat.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
buildtools/chkincs/meson.build
lib/librte_mbuf/rte_mbuf_core.h

index f345e87..f28cfd3 100644 (file)
@@ -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')
index a85cabd..9d16093 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <rte_compat.h>
 #include <rte_byteorder.h>
-#include <generic/rte_atomic.h>
 
 #ifdef __cplusplus
 extern "C" {