numam-dpdk/devtools/cocci
Bruce Richardson beeed9d92a cocci: add script for zero-length arrays in structs
Add script to replace [0] with [] when used at the end of a struct.
The script also includes an additional struct member to match against so
as to avoid issues with arrays with only a single zero-length element.

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>
2022-06-07 16:44:21 +02:00
..
mtod-offset.cocci
namespace_ethdev.cocci devtools/cocci: update script for ethdev namespace 2022-03-08 14:57:06 +01:00
nullfree.cocci devtools: add script to fix unnecessary null checks 2022-02-12 12:06:31 +01:00
prefix_mbuf_offload_flags.cocci devtools: add cocci script to rename mbuf offload flags 2021-10-24 13:37:02 +02:00
strlcpy-with-header.cocci devtools/cocci: create safer version of strlcpy script 2019-04-04 22:45:33 +02:00
strlcpy.cocci devtools/cocci: make strlcpy replacement smarter 2019-04-04 22:44:02 +02:00
zero_length_array.cocci cocci: add script for zero-length arrays in structs 2022-06-07 16:44:21 +02:00