drivers: fix build of crypto anonymous union initialization
[dpdk.git] / drivers / crypto / null / null_crypto_pmd_ops.c
index 39f8088..cf1a519 100644 (file)
@@ -41,9 +41,9 @@
 static const struct rte_cryptodev_capabilities null_crypto_pmd_capabilities[] = {
        {       /* NULL (AUTH) */
                .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,
-               .sym = {
+               {.sym = {
                        .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH,
-                       .auth = {
+                       {.auth = {
                                .algo = RTE_CRYPTO_AUTH_NULL,
                                .block_size = 1,
                                .key_size = {
@@ -57,14 +57,14 @@ static const struct rte_cryptodev_capabilities null_crypto_pmd_capabilities[] =
                                        .increment = 0
                                },
                                .aad_size = { 0 }
-                       }
-               }
+                       }, },
+               }, },
        },
        {       /* NULL (CIPHER) */
                .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,
-               .sym = {
+               {.sym = {
                        .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER,
-                       .cipher = {
+                       {.cipher = {
                                .algo = RTE_CRYPTO_CIPHER_NULL,
                                .block_size = 1,
                                .key_size = {
@@ -77,8 +77,8 @@ static const struct rte_cryptodev_capabilities null_crypto_pmd_capabilities[] =
                                        .max = 0,
                                        .increment = 0
                                }
-                       }
-               }
+                       }, },
+               }, }
        },
        RTE_CRYPTODEV_END_OF_CAPABILITIES_LIST()
 };