Re: [PATCH v3 1/4] cocci: add script for zero-length arrays in structs

2022-06-03 Thread Bruce Richardson
On Fri, Jun 03, 2022 at 12:30:25PM +0200, Morten Brørup wrote: > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > Sent: Friday, 3 June 2022 12.13 > > > > Add script to replace [0] with [] when used at the end of a struct. > > The script also includes an additional struct member to

RE: [PATCH v3 1/4] cocci: add script for zero-length arrays in structs

2022-06-03 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Friday, 3 June 2022 12.13 > > 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 ze