DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net: fix build with -Wpedantic
@ 2022-09-29  6:50 Ali Alnubani
  2022-09-29  7:01 ` [EXT] " Akhil Goyal
  0 siblings, 1 reply; 6+ messages in thread
From: Ali Alnubani @ 2022-09-29  6:50 UTC (permalink / raw)
  To: dev; +Cc: gakhil

Adds the __extension__ attribute to resolve the following warning
with gcc 4.8.5 on CentOS 7:
lib/net/rte_macsec.h:38:2: error: type of bit-field 'short_length' is
  a GCC extension [-Werror=pedantic]

Fixes: 0aaf097585a6 ("ethdev: add MACsec flow item")
Cc: gakhil@marvell.com

Signed-off-by: Ali Alnubani <alialnu@nvidia.com>
---
 lib/net/rte_macsec.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/net/rte_macsec.h b/lib/net/rte_macsec.h
index 9228ebd083..d0cd2f69ab 100644
--- a/lib/net/rte_macsec.h
+++ b/lib/net/rte_macsec.h
@@ -28,6 +28,7 @@ extern "C" {
 /**
  * MACsec Header (SecTAG)
  */
+__extension__
 struct rte_macsec_hdr {
 	/**
 	 * Tag control information and Association number of secure channel.
-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-29  7:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-29  6:50 [PATCH] net: fix build with -Wpedantic Ali Alnubani
2022-09-29  7:01 ` [EXT] " Akhil Goyal
2022-09-29  7:07   ` Ali Alnubani
2022-09-29  7:09     ` Akhil Goyal
2022-09-29  7:20       ` Thomas Monjalon
2022-09-29  7:09   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).