Re: [PATCH v2 2/4] drivers: replace zero-length arrays with undimensioned ones

2022-06-03 Thread Bruce Richardson
On Fri, Jun 03, 2022 at 09:19:35AM +0200, David Marchand wrote: > Hello Bruce, > > On Thu, Jun 2, 2022 at 6:14 PM Bruce Richardson > wrote: > > diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h > > index bc3e70a1d1..ed0781a560 100644 > > --- a/drivers/common/mlx5/mlx5_p

Re: [PATCH v2 2/4] drivers: replace zero-length arrays with undimensioned ones

2022-06-03 Thread Bruce Richardson
On Fri, Jun 03, 2022 at 09:19:35AM +0200, David Marchand wrote: > Hello Bruce, > > On Thu, Jun 2, 2022 at 6:14 PM Bruce Richardson > wrote: > > diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h > > index bc3e70a1d1..ed0781a560 100644 > > --- a/drivers/common/mlx5/mlx5_p

Re: [PATCH v2 2/4] drivers: replace zero-length arrays with undimensioned ones

2022-06-03 Thread David Marchand
Hello Bruce, On Thu, Jun 2, 2022 at 6:14 PM Bruce Richardson wrote: > diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h > index bc3e70a1d1..ed0781a560 100644 > --- a/drivers/common/mlx5/mlx5_prm.h > +++ b/drivers/common/mlx5/mlx5_prm.h > @@ -560,7 +560,7 @@ struct mlx5_

[PATCH v2 2/4] drivers: replace zero-length arrays with undimensioned ones

2022-06-02 Thread Bruce Richardson
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 cleanup of whitespace afterwards. Signed-off-by: Bruce Richardson Acked-by: Morten Brørup Acked-by: Ste