From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>, jun.yang@nxp.com
Subject: [PATCH 1/2] net/dpaa2: fix build with Gcc 15
Date: Sun, 10 Nov 2024 10:41:32 -0800 [thread overview]
Message-ID: <20241110184210.98650-2-stephen@networkplumber.org> (raw)
In-Reply-To: <20241110184210.98650-1-stephen@networkplumber.org>
Compiler no longer allows initializing byte array with string.
warning: initializer-string for array of ‘unsigned char’ is too long
[-Wunterminated-string-initialization]
169 | .vni = "\xff\xff\xff",
| ^~~~~~~~~~~~~~
Fixes: 39c8044ffb7b ("net/dpaa2: support VXLAN flow matching")
Cc: jun.yang@nxp.com
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/dpaa2/dpaa2_flow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dpaa2/dpaa2_flow.c b/drivers/net/dpaa2/dpaa2_flow.c
index cfbcb29df1..de850ae0cf 100644
--- a/drivers/net/dpaa2/dpaa2_flow.c
+++ b/drivers/net/dpaa2/dpaa2_flow.c
@@ -166,7 +166,7 @@ static const struct rte_flow_item_gre dpaa2_flow_item_gre_mask = {
static const struct rte_flow_item_vxlan dpaa2_flow_item_vxlan_mask = {
.flags = 0xff,
- .vni = "\xff\xff\xff",
+ .vni = { 0xff, 0xff, 0xff },
};
static const struct rte_flow_item_ecpri dpaa2_flow_item_ecpri_mask = {
--
2.45.2
next prev parent reply other threads:[~2024-11-10 18:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-10 18:41 [PATCH 0/2] Build with Gcc 15 fixes Stephen Hemminger
2024-11-10 18:41 ` Stephen Hemminger [this message]
2024-11-11 1:47 ` [PATCH 1/2] net/dpaa2: fix build with Gcc 15 Ferruh Yigit
2024-11-10 18:41 ` [PATCH 2/2] net/mlx5: " Stephen Hemminger
2024-11-11 1:47 ` Ferruh Yigit
2024-11-11 8:12 ` [PATCH 0/2] Build with Gcc 15 fixes Morten Brørup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241110184210.98650-2-stephen@networkplumber.org \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=jun.yang@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).