Skip to contentSkip to conversation

net: geneve: fix array of flexible structures warnings

PATCH Applied Jakub Kicinski 2 participants 2 messages Oct 28, 2022 – Oct 31, 2022

Subsystems (2)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 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

---
 include/net/geneve.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/geneve.h +1 -1
index bced0b1d9fe4..5c96827a487e 100644
@@ -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)
Signature · 1 line
2.37.3
#1 lore raw
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 8 lines · On Thu, 27 Oct 2022 20:52:59 -0700 you wrote:

New compilers don't like flexible array of flexible structs:

include/net/geneve.h:62:34: warning: array of flexible structures

---
 include/net/geneve.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net-next] net: geneve: fix array of flexible structures warnings

    https://git.kernel.org/netdev/net-next/c/8c2a535e089b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html