diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-10-28 05:52:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-31 11:43:04 +0100 |
commit | 8c2a535e089b2ab82cf50c876bd10c8ed33252c9 (patch) | |
tree | f113fe245f2768f83406fd367f73974a1c59f891 /include/net/geneve.h | |
parent | net: hns: hnae: remove unnecessary __module_get() and module_put() (diff) | |
download | linux-8c2a535e089b2ab82cf50c876bd10c8ed33252c9.tar.xz linux-8c2a535e089b2ab82cf50c876bd10c8ed33252c9.zip |
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>
Diffstat (limited to 'include/net/geneve.h')
-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) |