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: e41d27a68d ("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>
This commit is contained in:
David Marchand 2021-02-04 11:05:19 +01:00 committed by Thomas Monjalon
parent 65584ebe02
commit c48d8c3164
2 changed files with 0 additions and 2 deletions

View File

@ -17,7 +17,6 @@ gen_c_files = generator(gen_c_file_for_header,
arguments: ['@INPUT@', '@OUTPUT@']) arguments: ['@INPUT@', '@OUTPUT@'])
cflags = machine_args cflags = machine_args
cflags += '-Wno-unused-function' # needed if we include generic headers
cflags += '-DALLOW_EXPERIMENTAL_API' cflags += '-DALLOW_EXPERIMENTAL_API'
sources = files('main.c') sources = files('main.c')

View File

@ -20,7 +20,6 @@
#include <rte_compat.h> #include <rte_compat.h>
#include <rte_byteorder.h> #include <rte_byteorder.h>
#include <generic/rte_atomic.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {