net: geneve: fix array of flexible structures warnings
authorJakub Kicinski <kuba@kernel.org>
Fri, 28 Oct 2022 03:52:59 +0000 (20:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2022 10:43:04 +0000 (10:43 +0000)
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 <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/geneve.h

index bced0b1..5c96827 100644 (file)
@@ -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)