Acked-by: John Daley <[email protected]> From: Stephen Hemminger <[email protected]> Date: Friday, January 13, 2023 at 1:52 PM To: [email protected] <[email protected]> Cc: Stephen Hemminger <[email protected]>, John Daley (johndale) <[email protected]>, Hyong Youb Kim (hyonkim) <[email protected]> Subject: [PATCH 6/7] enic: replace zero length array with flex array Zero length arrays are GNU extension. Replace with standard flex array.
Signed-off-by: Stephen Hemminger <[email protected]> --- drivers/net/enic/base/vnic_devcmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/base/vnic_devcmd.h b/drivers/net/enic/base/vnic_devcmd.h index 253a791c3f65..f91cc3078d63 100644 --- a/drivers/net/enic/base/vnic_devcmd.h +++ b/drivers/net/enic/base/vnic_devcmd.h @@ -765,7 +765,7 @@ struct vnic_devcmd_notify { struct vnic_devcmd_provinfo { uint8_t oui[3]; uint8_t type; - uint8_t data[0]; + uint8_t data[]; }; /* -- 2.39.0

