[PATCH v4 00/10] Replace zero length arrays
Stephen Hemminger
stephen at networkplumber.org
Mon Nov 20 18:06:55 CET 2023
Zero length arrays are a GNU extension that has been
superseded by flex arrays.
https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
These are places found by cocci/zero_length_array.cocci
v4 - fix issues reported by clang where zero length
array was embedded in security structures in cn10k
and txq being embedded in mlx5 was missing extension
Stephen Hemminger (10):
member: replace zero length array with flex array
cryptodev: replace zero length array with flex array
security: replace zero length array with flex array
pipeline: replace zero length array with flex array
net/nfp: replace zero length array with flex array
net/enic: replace zero length array with flex array
net/mlx5: replace zero length array with flex array
pdcp: replace zero length array with flex array
net/cpfl: replace zero length array with flex array
common/dpaxx: remove zero length array
drivers/common/dpaax/caamflib/desc/ipsec.h | 6 ++----
drivers/common/mlx5/mlx5_prm.h | 2 +-
drivers/crypto/cnxk/cn10k_ipsec.h | 4 +++-
drivers/crypto/cnxk/cn9k_ipsec.h | 4 +++-
drivers/crypto/cnxk/cnxk_se.h | 5 ++++-
drivers/net/cpfl/cpfl_flow_engine_fxp.c | 2 +-
drivers/net/enic/base/vnic_devcmd.h | 2 +-
drivers/net/mlx5/mlx5.h | 4 ++--
drivers/net/mlx5/mlx5_flow.h | 2 +-
drivers/net/mlx5/mlx5_tx.h | 3 ++-
drivers/net/nfp/flower/nfp_flower_cmsg.h | 2 +-
lib/cryptodev/cryptodev_pmd.h | 2 +-
lib/member/rte_member_heap.h | 2 +-
lib/pdcp/pdcp_entity.h | 2 +-
lib/pipeline/rte_swx_pipeline_internal.h | 2 +-
lib/security/rte_security_driver.h | 2 +-
16 files changed, 26 insertions(+), 20 deletions(-)
--
2.42.0
More information about the dev
mailing list