Skip to contentSkip to conversation

mbuf: remove unneeded EAL header include

PATCH Superseded David Marchand 5 participants 7 messages Jan 29, 2021 – Feb 5, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

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

Fixes e41d27a68df6 ("mbuf: remove atomic reference counters")
---
 lib/librte_mbuf/rte_mbuf_core.h | 1 -
 1 file changed, 1 deletion(-)
lib/librte_mbuf/rte_mbuf_core.h +0 -1
index a85cabdd18..9d1609336a 100644
@@ -20,7 +20,6 @@
 
 #include <rte_compat.h>
 #include <rte_byteorder.h>
-#include <generic/rte_atomic.h>
 
 #ifdef __cplusplus
 extern "C" {
Signature · 1 line
2.23.0
Reviewed-by on v1 1/1
#1 lore raw
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 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

Fixes e41d27a68df6 ("mbuf: remove atomic reference counters")
---
 lib/librte_mbuf/rte_mbuf_core.h | 1 -
 1 file changed, 1 deletion(-)
(quoted diff) +0 -0

b/lib/librte_mbuf/rte_mbuf_core.h index a85cabdd18..9d1609336a 100644

lib/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 __cplusplus
 extern "C" {
--
Quoted 1 line

2.23.0

#2 lore raw

PATCH v2 1/2 mbuf: remove unneeded atomic header include

In reply to David Marchand

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

Fixes e41d27a68df6 ("mbuf: remove atomic reference counters")
---
 lib/librte_mbuf/rte_mbuf_core.h | 1 -
 1 file changed, 1 deletion(-)
lib/librte_mbuf/rte_mbuf_core.h +0 -1
index a85cabdd18..9d1609336a 100644
@@ -20,7 +20,6 @@
 
 #include <rte_compat.h>
 #include <rte_byteorder.h>
-#include <generic/rte_atomic.h>
 
 #ifdef __cplusplus
 extern "C" {
Signature · 1 line
2.23.0
#3 lore raw

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
index f345e87551..f28cfd3cd4 100644
@@ -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
#5 lore raw

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.

---

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.

Acked-by on v2 1/2
#6 lore raw

Re: [dpdk-dev] [PATCH v2 1/2] mbuf: remove unneeded atomic header include

In reply to David Marchand
Quoted 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_atomic API anymore.

1: https://git.dpdk.org/dpdk/commit/?id=3eb860b08eb7

Fixes e41d27a68df6 ("mbuf: remove atomic reference counters")