replace zero-length arrays with flexible ones
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 3 Jun 2022 11:16:23 +0000 (12:16 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 7 Jun 2022 14:44:21 +0000 (16:44 +0200)
commit013b4c52c708dc8fed079ff05fbe66f475365586
treee5c1c6bf8df38d0dcf798816bae61d724181d2aa
parentbeeed9d92aca54f9e7a3881a14af2528bb227926
replace zero-length arrays with flexible ones

This patch replaces instances of zero-sized arrays i.e. those at the end
of structures with "[0]" with the more standard syntax of "[]".
Replacement was done using coccinelle script, with some revert and
cleanup of whitespace afterwards.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
36 files changed:
app/test/test_table_tables.c
drivers/bus/dpaa/include/netcfg.h
drivers/bus/vmbus/rte_vmbus_reg.h
drivers/common/cnxk/roc_se.h
drivers/common/dpaax/dpaax_iova_table.h
drivers/common/mlx5/mlx5_prm.h
drivers/crypto/ipsec_mb/ipsec_mb_private.h
drivers/crypto/virtio/virtio_ring.h
drivers/crypto/virtio/virtqueue.h
drivers/net/atlantic/hw_atl/hw_atl_utils.h
drivers/net/cxgbe/clip_tbl.h
drivers/net/cxgbe/l2t.h
drivers/net/cxgbe/mps_tcam.h
drivers/net/cxgbe/smt.h
drivers/net/enic/base/vnic_devcmd.h
drivers/net/hinic/hinic_pmd_tx.h
drivers/net/nfp/nfpcore/nfp_nsp.h
drivers/net/virtio/virtio_ring.h
drivers/net/virtio/virtio_user/vhost_kernel.c
drivers/net/virtio/virtio_user/vhost_vdpa.c
drivers/net/virtio/virtqueue.h
drivers/regex/mlx5/mlx5_rxp.h
examples/ip_reassembly/main.c
examples/ptpclient/ptpclient.c
lib/cryptodev/cryptodev_pmd.h
lib/cryptodev/rte_cryptodev.h
lib/eventdev/rte_event_timer_adapter.h
lib/ip_frag/ip_reassembly.h
lib/ipsec/sa.h
lib/rib/rte_rib.c
lib/rib/rte_rib6.c
lib/table/rte_swx_table_learner.c
lib/table/rte_table_hash_key16.c
lib/table/rte_table_hash_key32.c
lib/table/rte_table_hash_key8.c
lib/vhost/rte_vhost.h