[20/32] cryptodev: remove use of RTE STD C11 macro

Message ID 1691792567-10805-21-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>
---
 lib/cryptodev/cryptodev_pmd.h   | 2 +-
 lib/cryptodev/rte_crypto_asym.h | 4 ----
 lib/cryptodev/rte_crypto_sym.h  | 3 ---
 lib/cryptodev/rte_cryptodev.h   | 2 --
 4 files changed, 1 insertion(+), 10 deletions(-)
  

Patch

diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h
index 4c98ced..3bb3d95 100644
--- a/lib/cryptodev/cryptodev_pmd.h
+++ b/lib/cryptodev/cryptodev_pmd.h
@@ -683,7 +683,7 @@  uint8_t rte_cryptodev_allocate_driver(struct cryptodev_driver *crypto_drv,
  * @internal
  * Cryptodev asymmetric crypto session.
  */
-RTE_STD_C11 struct rte_cryptodev_asym_session {
+struct rte_cryptodev_asym_session {
 	uint8_t driver_id;
 	/**< Session driver ID. */
 	uint16_t max_priv_data_sz;
diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h
index 8b5794f..cbcfe1d 100644
--- a/lib/cryptodev/rte_crypto_asym.h
+++ b/lib/cryptodev/rte_crypto_asym.h
@@ -310,7 +310,6 @@  struct rte_crypto_rsa_xform {
 
 	enum rte_crypto_rsa_priv_key_type key_type;
 
-	RTE_STD_C11
 	union {
 		rte_crypto_uint d;
 		/**< the RSA private exponent */
@@ -625,7 +624,6 @@  struct rte_crypto_asym_xform {
 	enum rte_crypto_asym_xform_type xform_type;
 	/**< Asymmetric crypto transform */
 
-	RTE_STD_C11
 	union {
 		struct rte_crypto_rsa_xform rsa;
 		/**< RSA xform parameters */
@@ -725,7 +723,6 @@  struct rte_crypto_sm2_op_param {
  * Structure describing asymmetric crypto operation params.
  */
 struct rte_crypto_asym_op {
-	RTE_STD_C11
 	union {
 		struct rte_cryptodev_asym_session *session;
 		/**< Handle for the initialised session context */
@@ -733,7 +730,6 @@  struct rte_crypto_asym_op {
 		/**< Session-less API crypto operation parameters */
 	};
 
-	RTE_STD_C11
 	union {
 		struct rte_crypto_rsa_op_param rsa;
 		struct rte_crypto_mod_op_param modex;
diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h
index 76c868c..bde8010 100644
--- a/lib/cryptodev/rte_crypto_sym.h
+++ b/lib/cryptodev/rte_crypto_sym.h
@@ -594,7 +594,6 @@  struct rte_crypto_sym_xform {
 	/**< next xform in chain */
 	enum rte_crypto_sym_xform_type type
 	; /**< xform type */
-	RTE_STD_C11
 	union {
 		struct rte_crypto_auth_xform auth;
 		/**< Authentication / hash xform */
@@ -641,7 +640,6 @@  struct rte_crypto_sym_op {
 	struct rte_mbuf *m_src;	/**< source mbuf */
 	struct rte_mbuf *m_dst;	/**< destination mbuf */
 
-	RTE_STD_C11
 	union {
 		void *session;
 		/**< Handle for the initialised crypto/security session context */
@@ -649,7 +647,6 @@  struct rte_crypto_sym_op {
 		/**< Session-less API crypto operation parameters */
 	};
 
-	RTE_STD_C11
 	union {
 		struct {
 			struct {
diff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h
index ba73037..9246df9 100644
--- a/lib/cryptodev/rte_cryptodev.h
+++ b/lib/cryptodev/rte_cryptodev.h
@@ -109,7 +109,6 @@  struct rte_crypto_param_range {
 struct rte_cryptodev_symmetric_capability {
 	enum rte_crypto_sym_xform_type xform_type;
 	/**< Transform type : Authentication / Cipher / AEAD */
-	RTE_STD_C11
 	union {
 		struct {
 			enum rte_crypto_auth_algorithm algo;
@@ -198,7 +197,6 @@  struct rte_cryptodev_capabilities {
 	enum rte_crypto_op_type op;
 	/**< Operation type */
 
-	RTE_STD_C11
 	union {
 		struct rte_cryptodev_symmetric_capability sym;
 		/**< Symmetric operation capability parameters */