[PATCH 0/2] more replacement of zero length array

Tyler Retzlaff roretzla at linux.microsoft.com
Wed Jan 24 23:17:35 CET 2024


Replace some missed zero length arrays not captured in the
original series.
https://patchwork.dpdk.org/project/dpdk/list/?series=30410&state=*

Zero length arrays are a GNU extension that has been
superseded by flex arrays.

https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html

Tyler Retzlaff (2):
  hash: replace zero length array with flex array
  rcu: replace zero length array with flex array

 lib/hash/rte_thash.c   | 4 ++--
 lib/rcu/rcu_qsbr_pvt.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
1.8.3.1



More information about the dev mailing list