* [PATCH net-next] net: geneve: fix array of flexible structures warnings
@ 2022-10-28 3:52 Jakub Kicinski
2022-10-31 10:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Kicinski @ 2022-10-28 3:52 UTC (permalink / raw)
To: davem; +Cc: netdev, edumazet, pabeni, Jakub Kicinski
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>
---
include/net/geneve.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.37.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: geneve: fix array of flexible structures warnings
2022-10-28 3:52 [PATCH net-next] net: geneve: fix array of flexible structures warnings Jakub Kicinski
@ 2022-10-31 10:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-10-31 10:50 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: davem, netdev, edumazet, pabeni
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
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
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> 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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-31 10:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-28 3:52 [PATCH net-next] net: geneve: fix array of flexible structures warnings Jakub Kicinski
2022-10-31 10:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).