提交 8c2a535e 编写于 作者: J Jakub Kicinski 提交者: David S. Miller

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: NJakub Kicinski <kuba@kernel.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 47aeed9d
...@@ -59,7 +59,7 @@ struct genevehdr { ...@@ -59,7 +59,7 @@ struct genevehdr {
__be16 proto_type; __be16 proto_type;
u8 vni[3]; u8 vni[3];
u8 rsvd2; u8 rsvd2;
struct geneve_opt options[]; u8 options[];
}; };
static inline bool netif_is_geneve(const struct net_device *dev) static inline bool netif_is_geneve(const struct net_device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册