> -----Original Message-----
> From: Wu, WenxuanX <[email protected]>
> Sent: Thursday, June 23, 2022 5:01 PM
> To: [email protected]; [email protected]; Yang, Qiming
> <[email protected]>; Zhang, Qi Z <[email protected]>
> Cc: [email protected]; Wu, WenxuanX
> <[email protected]>; Zhou, YidingX <[email protected]>;
> [email protected]
> Subject: [PATCH v2] net/ice/base: fix gcc 12 warning stringop-overflow
>
> From: Wenxuan Wu <[email protected]>
>
> 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: [email protected]
>
> Signed-off-by: Wenxuan Wu <[email protected]>
Acked-by: Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi