mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-24 19:35:58 +00:00
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>
This commit is contained in:
parent
47aeed9d2c
commit
8c2a535e08
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue