crypto/zuc: fix build with GCC 11
authorKevin Traynor <ktraynor@redhat.com>
Fri, 14 May 2021 15:08:34 +0000 (16:08 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 19 May 2021 12:54:29 +0000 (14:54 +0200)
commit099db3d156038b792d97c29a6e2743369d7d50a5
tree561687de61ebca5dfa0cc23d4e7b0bc6afcf75e4
parent8f73a72378333a68ada948ad648f9c6f925af58b
crypto/zuc: fix build with GCC 11

GCC 11 complains that some arrays may be uninitialized in
process_zuc_hash_op(). This is because their initialization
depends on num_ops being > 0.

This function is only called with num_ops > 0 because of
checks in process_zuc_hash_op().

To remove the warning initialize the arrays.

Fixes: 0b133c36ad7d ("crypto/zuc: support IPsec Multi-buffer lib v0.54")
Cc: stable@dpdk.org
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
drivers/crypto/zuc/rte_zuc_pmd.c