[31/32] common/cnxk: remove use of RTE STD C11 macro

Message ID 1691792567-10805-32-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Headers
Series Remove use and definition of RTE_STD_C11 macro |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Tyler Retzlaff Aug. 11, 2023, 10:22 p.m. UTC
  C11 conformant compiler is documented as a minimum requirement to build
and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11
features with __extension__ since it is no longer necessary.

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
 drivers/common/cnxk/hw/nix.h       | 7 -------
 drivers/common/cnxk/roc_nix.h      | 1 -
 drivers/common/cnxk/roc_npc.h      | 3 ---
 drivers/common/cnxk/roc_platform.h | 1 -
 4 files changed, 12 deletions(-)
  

Patch

diff --git a/drivers/common/cnxk/hw/nix.h b/drivers/common/cnxk/hw/nix.h
index 26dcda6..319fe36 100644
--- a/drivers/common/cnxk/hw/nix.h
+++ b/drivers/common/cnxk/hw/nix.h
@@ -1622,7 +1622,6 @@  struct nix_send_crc_s {
 };
 
 /* NIX send extended header sub descriptor structure */
-PLT_STD_C11
 union nix_send_ext_w0_u {
 	uint64_t u;
 	struct {
@@ -1642,7 +1641,6 @@  struct nix_send_crc_s {
 	};
 };
 
-PLT_STD_C11
 union nix_send_ext_w1_u {
 	uint64_t u;
 	struct {
@@ -1672,7 +1670,6 @@  struct nix_send_ext_s {
 };
 
 /* NIX send header sub descriptor structure */
-PLT_STD_C11
 union nix_send_hdr_w0_u {
 	uint64_t u;
 	struct {
@@ -1686,7 +1683,6 @@  struct nix_send_ext_s {
 	};
 };
 
-PLT_STD_C11
 union nix_send_hdr_w1_u {
 	uint64_t u;
 	struct {
@@ -1728,7 +1724,6 @@  struct nix_send_jump_s {
 };
 
 /* NIX send memory sub descriptor structure */
-PLT_STD_C11
 union nix_send_mem_w0_u {
 	uint64_t u;
 	struct {
@@ -1756,7 +1751,6 @@  struct nix_send_mem_s {
 };
 
 /* NIX send scatter/gather sub descriptor structure */
-PLT_STD_C11
 union nix_send_sg2_s {
 	uint64_t u;
 	struct {
@@ -1771,7 +1765,6 @@  struct nix_send_mem_s {
 	};
 };
 
-PLT_STD_C11
 union nix_send_sg_s {
 	uint64_t u;
 	struct {
diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h
index 9c2ba9a..66f0597 100644
--- a/drivers/common/cnxk/roc_nix.h
+++ b/drivers/common/cnxk/roc_nix.h
@@ -294,7 +294,6 @@  struct roc_nix_stats {
 };
 
 struct roc_nix_stats_queue {
-	PLT_STD_C11
 	union {
 		struct {
 			/* Rx */
diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h
index 07e6634..48e550a 100644
--- a/drivers/common/cnxk/roc_npc.h
+++ b/drivers/common/cnxk/roc_npc.h
@@ -67,7 +67,6 @@  struct roc_ether_addr {
 
 struct roc_ether_hdr {
 	struct roc_ether_addr d_addr; /**< Destination address. */
-	PLT_STD_C11
 	union {
 		struct roc_ether_addr s_addr; /**< Source address. */
 		struct {
@@ -77,7 +76,6 @@  struct roc_ether_hdr {
 	uint16_t ether_type; /**< Frame type. */
 } __plt_aligned(2);
 
-PLT_STD_C11
 struct roc_npc_flow_item_eth {
 	union {
 		struct {
@@ -101,7 +99,6 @@  struct roc_vlan_hdr {
 	uint16_t eth_proto; /**< Ethernet type of encapsulated frame. */
 } __plt_packed;
 
-PLT_STD_C11
 struct roc_npc_flow_item_vlan {
 	union {
 		struct {
diff --git a/drivers/common/cnxk/roc_platform.h b/drivers/common/cnxk/roc_platform.h
index 9884398..08f83ab 100644
--- a/drivers/common/cnxk/roc_platform.h
+++ b/drivers/common/cnxk/roc_platform.h
@@ -43,7 +43,6 @@ 
 #define PLT_ASSERT		 RTE_ASSERT
 #define PLT_VERIFY		 RTE_VERIFY
 #define PLT_MEMZONE_NAMESIZE	 RTE_MEMZONE_NAMESIZE
-#define PLT_STD_C11		 RTE_STD_C11
 #define PLT_PTR_ADD		 RTE_PTR_ADD
 #define PLT_PTR_SUB		 RTE_PTR_SUB
 #define PLT_PTR_DIFF		 RTE_PTR_DIFF