Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jakub Kicinski and committed by
David S. Miller
8c2a535e 47aeed9d

+1 -1
+1 -1
include/net/geneve.h
··· 59 59 __be16 proto_type; 60 60 u8 vni[3]; 61 61 u8 rsvd2; 62 - struct geneve_opt options[]; 62 + u8 options[]; 63 63 }; 64 64 65 65 static inline bool netif_is_geneve(const struct net_device *dev)