[23/32] net/sfc: remove use of RTE STD C11 macro

Message ID 1691792567-10805-24-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/net/sfc/sfc_flow.h  | 2 --
 drivers/net/sfc/sfc_mae.h   | 1 -
 drivers/net/sfc/sfc_stats.h | 1 -
 3 files changed, 4 deletions(-)
  

Patch

diff --git a/drivers/net/sfc/sfc_flow.h b/drivers/net/sfc/sfc_flow.h
index 601f93e..06738fe 100644
--- a/drivers/net/sfc/sfc_flow.h
+++ b/drivers/net/sfc/sfc_flow.h
@@ -109,7 +109,6 @@  struct sfc_flow_spec {
 	/* Flow specification type (engine-based) */
 	enum sfc_flow_spec_type type;
 
-	RTE_STD_C11
 	union {
 		/* Filter-based (VNIC level flows) specification */
 		struct sfc_flow_spec_filter filter;
@@ -149,7 +148,6 @@  enum sfc_flow_parse_ctx_type {
 struct sfc_flow_parse_ctx {
 	enum sfc_flow_parse_ctx_type type;
 
-	RTE_STD_C11
 	union {
 		/* Context pointer valid for filter-based (VNIC) flows */
 		efx_filter_spec_t *filter;
diff --git a/drivers/net/sfc/sfc_mae.h b/drivers/net/sfc/sfc_mae.h
index 059718e..646d055 100644
--- a/drivers/net/sfc/sfc_mae.h
+++ b/drivers/net/sfc/sfc_mae.h
@@ -25,7 +25,6 @@ 
 /** FW-allocatable resource context */
 struct sfc_mae_fw_rsrc {
 	unsigned int			refcnt;
-	RTE_STD_C11
 	union {
 		efx_counter_t		counter_id;
 		efx_mae_aset_id_t	aset_id;
diff --git a/drivers/net/sfc/sfc_stats.h b/drivers/net/sfc/sfc_stats.h
index aae8243..597e14d 100644
--- a/drivers/net/sfc/sfc_stats.h
+++ b/drivers/net/sfc/sfc_stats.h
@@ -26,7 +26,6 @@ 
  * required.
  */
 union sfc_pkts_bytes {
-	RTE_STD_C11
 	struct {
 		uint64_t		pkts;
 		uint64_t		bytes;