> -----Original Message-----
> From: Wu, WenxuanX <wenxuanx...@intel.com>
> Sent: Thursday, June 23, 2022 5:01 PM
> To: dev@dpdk.org; tho...@monjalon.net; Yang, Qiming
> <qiming.y...@intel.com>; Zhang, Qi Z <qi.z.zh...@intel.com>
> Cc: step...@networkplumber.org; Wu, WenxuanX
> <wenxuanx...@intel.com>; Zhou, YidingX <yidingx.z...@intel.com>;
> sta...@dpdk.org
> Subject: [PATCH v2] net/ice/base: fix gcc 12 warning stringop-overflow
>
> From: Wenxuan Wu <wenxuanx...@intel.com>
>
> gcc 12 with -O2 flag would raise the following warning:
> ../drivers/net/ice/base/ice_switch.c:7220:61: error: writing 1 byte into a
> region
> of size 0 [-Werror=stringop-overflow=]
> 7220 | buf[recps].content.lkup_indx[i + 1] = entry->fv_idx[i];
> |
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
>
> This patch changed the type of fv_idx in struct ice_recp_grp_entry to align
> with
> its callers which are also u8 type.
>
> Fixes: 04b8ec1ea807 ("net/ice/base: add protocol structures and defines")
> Cc: sta...@dpdk.org
>
> Signed-off-by: Wenxuan Wu <wenxuanx...@intel.com>
Acked-by: Qi Zhang <qi.z.zh...@intel.com>
Applied to dpdk-next-net-intel.
Thanks
Qi