From: Jakub Kicinski Date: Fri, 28 Oct 2022 03:52:59 +0000 (-0700) Subject: net: geneve: fix array of flexible structures warnings X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8c2a535e089b2ab82cf50c876bd10c8ed33252c9;p=users%2Fjedix%2Flinux-maple.git net: geneve: fix array of flexible structures warnings New compilers don't like flexible array of flexible structs: include/net/geneve.h:62:34: warning: array of flexible structures Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller --- diff --git a/include/net/geneve.h b/include/net/geneve.h index bced0b1d9fe4..5c96827a487e 100644 --- a/include/net/geneve.h +++ b/include/net/geneve.h @@ -59,7 +59,7 @@ struct genevehdr { __be16 proto_type; u8 vni[3]; u8 rsvd2; - struct geneve_opt options[]; + u8 options[]; }; static inline bool netif_is_geneve(const struct net_device *dev)