]> git.droids-corp.org - dpdk.git/commitdiff
cryptodev: use C11 macro instead of direct attribute
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Fri, 11 Feb 2022 16:02:37 +0000 (16:02 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Sat, 12 Feb 2022 10:20:06 +0000 (11:20 +0100)
This commit replaces __extension__ attribute with
RTE_STD_C11 in anonymous unions.

It makes API consistent in terms of usage of C11
feature macro.

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
lib/cryptodev/rte_crypto_asym.h

index 58d47158de7d902dd3027f57282625680ac49b98..7bdc847702c2e317a5336db13b2022dab7ca5ed7 100644 (file)
@@ -222,7 +222,7 @@ struct rte_crypto_rsa_xform {
 
        enum rte_crypto_rsa_priv_key_type key_type;
 
-       __extension__
+       RTE_STD_C11
        union {
                rte_crypto_param d;
                /**< d - Private key exponent
@@ -408,7 +408,7 @@ struct rte_crypto_asym_xform {
        enum rte_crypto_asym_xform_type xform_type;
        /**< Asymmetric crypto transform */
 
-       __extension__
+       RTE_STD_C11
        union {
                struct rte_crypto_rsa_xform rsa;
                /**< RSA xform parameters */
@@ -642,7 +642,7 @@ struct rte_crypto_asym_op {
                /**< Session-less API crypto operation parameters */
        };
 
-       __extension__
+       RTE_STD_C11
        union {
                struct rte_crypto_rsa_op_param rsa;
                struct rte_crypto_mod_op_param modex;