crypto: fix pedantic compilation
/x86_64-native-linuxapp-gcc/include/rte_crypto.h:126:28: error: ISO C forbids zero-size array ‘sym’ [-Werror=pedantic] struct rte_crypto_sym_op sym[0]; ^~~ Zero-size array is an extension to the language it cannot be replaced by a empty size array i.e. [] because structure is inside a union. Fixes: d2a4223c4c6d ("cryptodev: do not store pointer to op specific params") Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
parent
9265ef805d
commit
81c8dff2fd
@ -93,7 +93,7 @@ struct rte_crypto_op {
|
||||
rte_iova_t phys_addr;
|
||||
/**< physical address of crypto operation */
|
||||
|
||||
RTE_STD_C11
|
||||
__extension__
|
||||
union {
|
||||
struct rte_crypto_sym_op sym[0];
|
||||
/**< Symmetric operation parameters */
|
||||
|
Loading…
x
Reference in New Issue
Block a user