[PATCH 1/2] net/dpaa2: fix build with Gcc 15
Stephen Hemminger
stephen at networkplumber.org
Sun Nov 10 19:41:32 CET 2024
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 at nxp.com
Signed-off-by: Stephen Hemminger <stephen at 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
More information about the dev
mailing list