drivers: fix build of crypto anonymous union initialization
[dpdk.git] / drivers / crypto / snow3g / rte_snow3g_pmd_ops.c
index 74eee23..6f00b06 100644 (file)
@@ -41,9 +41,9 @@
 static const struct rte_cryptodev_capabilities snow3g_pmd_capabilities[] = {
        {       /* SNOW3G (UIA2) */
                .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,
-               .sym = {
+               {.sym = {
                        .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH,
-                       .auth = {
+                       {.auth = {
                                .algo = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
                                .block_size = 16,
                                .key_size = {
@@ -61,14 +61,14 @@ static const struct rte_cryptodev_capabilities snow3g_pmd_capabilities[] = {
                                        .max = 16,
                                        .increment = 0
                                }
-                       }
-               }
+                       }, }
+               }, }
        },
        {       /* SNOW3G (UEA2) */
                .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,
-               .sym = {
+               {.sym = {
                        .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER,
-                       .cipher = {
+                       {.cipher = {
                                .algo = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
                                .block_size = 16,
                                .key_size = {
@@ -81,8 +81,8 @@ static const struct rte_cryptodev_capabilities snow3g_pmd_capabilities[] = {
                                        .max = 16,
                                        .increment = 0
                                }
-                       }
-               }
+                       }, }
+               }, }
        },
        RTE_CRYPTODEV_END_OF_CAPABILITIES_LIST()
 };