[PATCH v4 05/10] net/nfp: replace zero length array with flex array
Chaoyong He
chaoyong.he at corigine.com
Tue Nov 21 02:14:24 CET 2023
Acked-by: Chaoyong He <chaoyong.he at corigine.com>
> Zero length arrays are GNU extension. Replace with standard flex array.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Niklas Söderlund <niklas.soderlund at corigine.com>
> Reviewed-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> ---
> drivers/net/nfp/flower/nfp_flower_cmsg.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/nfp/flower/nfp_flower_cmsg.h
> b/drivers/net/nfp/flower/nfp_flower_cmsg.h
> index c2938fb6f63c..f00d2e838d8f 100644
> --- a/drivers/net/nfp/flower/nfp_flower_cmsg.h
> +++ b/drivers/net/nfp/flower/nfp_flower_cmsg.h
> @@ -73,7 +73,7 @@ struct nfp_flower_cmsg_mac_repr {
> uint8_t info;
> uint8_t nbi_port;
> uint8_t phys_port;
> - } ports[0];
> + } ports[];
> };
>
> /*
> --
> 2.42.0
More information about the dev
mailing list