mbuf: remove unneeded EAL header include
PATCH 1/1 mbuf: remove unneeded EAL 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.
1: https://git.dpdk.org/dpdk/commit/?id=3eb860b08eb7
--- lib/librte_mbuf/rte_mbuf_core.h | 1 - 1 file changed, 1 deletion(-)
lib/librte_mbuf/rte_mbuf_core.h +0 -1
@@ -20,7 +20,6 @@#include <rte_compat.h> #include <rte_byteorder.h> -#include <generic/rte_atomic.h> #ifdef __cplusplusextern "C" {
Signature · 1 line
2.23.0
Quoted 36 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Saturday, January 30, 2021 4:33 AM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Olivier Matz <[email protected]>; Ruifeng Wang <[email protected]>; Phil Yang <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]
Subject: [PATCH] mbuf: remove unneeded EAL header includeThere is no need for the direct inclusion of the generic/ header [1] now that we don't use the
rte_atomicAPI anymore.1: https://git.dpdk.org/dpdk/commit/?id=3eb860b08eb7
Fixes e41d27a68df6 ("mbuf: remove atomic reference counters")Signed-off-by David Marchand <[email protected]>--- lib/librte_mbuf/rte_mbuf_core.h | 1 - 1 file changed, 1 deletion(-)(quoted diff) +0
-0
b/lib/librte_mbuf/rte_mbuf_core.hindexa85cabdd18..9d1609336a100644lib/librte_mbuf/rte_mbuf_core.h +0
-2@@ -20,7 +20,6 @@#include <rte_compat.h> #include <rte_byteorder.h> -#include <generic/rte_atomic.h> #ifdef __cplusplusextern "C" { --
Quoted 1 line
2.23.0
PATCH v2 1/2 mbuf: remove unneeded atomic header include
In reply to David MarchandThere is no need for the direct inclusion of the generic/ header [1] now that we don't use the rte_atomic API anymore.
1: https://git.dpdk.org/dpdk/commit/?id=3eb860b08eb7
--- lib/librte_mbuf/rte_mbuf_core.h | 1 - 1 file changed, 1 deletion(-)
lib/librte_mbuf/rte_mbuf_core.h +0 -1
@@ -20,7 +20,6 @@#include <rte_compat.h> #include <rte_byteorder.h> -#include <generic/rte_atomic.h> #ifdef __cplusplusextern "C" {
Signature · 1 line
2.23.0
PATCH v2 2/2 builtools: remove build flag for header includes check
Previous patch just removes the last case of direct inclusion of the generic/ headers.
--- buildtools/chkincs/meson.build | 1 - 1 file changed, 1 deletion(-)
buildtools/chkincs/meson.build +0 -1
@@ -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')
Signature · 1 line
2.23.0
Re: [dpdk-dev] [PATCH v2 2/2] builtools: remove build flag for header includes check
Quoted 5 lines · David Marchand
Previous patch just removes the last case of direct inclusion of the generic/ headers.
Signed-off-by David Marchand <[email protected]>---
Re: [dpdk-dev] [PATCH v2 2/2] builtools: remove build flag for header includes check
04/02/2021 11:26, Bruce Richardson:
Quoted 7 lines · David Marchand
Quoted 5 lines
Previous patch just removes the last case of direct inclusion of the generic/ headers.
Signed-off-by David Marchand <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
I think this patch is better understood (in git history I mean) if squashed with the previous one.
Removing this flag is the direct consequence of removing the include in mbuf.
Squashed and applied, thanks.
Re: [dpdk-dev] [PATCH v2 1/2] mbuf: remove unneeded atomic header include
In reply to David MarchandQuoted 10 lines · David Marchand
There is no need for the direct inclusion of the generic/ header [1] now that we don't use the
rte_atomicAPI anymore.1: https://git.dpdk.org/dpdk/commit/?id=3eb860b08eb7
Fixes e41d27a68df6 ("mbuf: remove atomic reference counters")Signed-off-by David Marchand <[email protected]>Reviewed-by Ruifeng Wang <[email protected]>