drivers: fix build of crypto anonymous union initialization
authorFiona Trahe <fiona.trahe@intel.com>
Wed, 30 Mar 2016 12:49:55 +0000 (13:49 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 31 Mar 2016 19:32:19 +0000 (21:32 +0200)
commitff150afd7eb6f98282a34a6e409300ce5efa6377
tree6bcb3c7e97f2b681a4da3932df983b8d8f12484d
parente13676bfe7d1df44def6ff27886cc27823323f40
drivers: fix build of crypto anonymous union initialization

In SUSE11-SP3 i686 platform, with gcc 4.5.1, there are compile issues, e.g:
  null_crypto_pmd_ops.c:44:3: error:
  unknown field 'sym' specified in initializer
  cc1: warnings being treated as errors

The member in anonymous union initialization should be inside '{}',
otherwise it will report an error.

Fixes: 26c2e4ad5ad4 ("cryptodev: add capabilities discovery")

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c
drivers/crypto/null/null_crypto_pmd_ops.c
drivers/crypto/qat/qat_crypto.c
drivers/crypto/snow3g/rte_snow3g_pmd_ops.c