diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-10-27 20:52:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-31 10:43:04 +0000 |
commit | 8c2a535e089b2ab82cf50c876bd10c8ed33252c9 (patch) | |
tree | f113fe245f2768f83406fd367f73974a1c59f891 | |
parent | 47aeed9d2ccde99c990ba3163b8d8308ad00df1b (diff) |
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 <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/geneve.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |