Ths is early proposal on how to address some of the gcc-12 warnings. Most of these are related to rte_memcpy which can simply be addressed by using regular memcpy instead.
Stephen Hemminger (8): net/ena: fix warnings related to rte_memcpy and gcc-12 net/qede: fix gcc-12 rte_memcpy warnings net/ice: fix rte_memcpy warnings with gcc-12 test/ipfrag: fix gcc-12 warnings test/ipsec: fix gcc-12 rte_memcpy warnings net/enetfc: fix array out of bounds warning vhost: replace rte_memcpy to fix warning ip_frag: fix gcc-12 warnings app/test/test_ipfrag.c | 13 ++++++----- app/test/test_ipsec.c | 13 ++++++----- drivers/net/ena/base/ena_plat_dpdk.h | 10 +-------- drivers/net/ena/ena_ethdev.c | 8 +++---- drivers/net/ena/ena_rss.c | 2 +- drivers/net/enetfec/enet_ethdev.c | 5 +++++ drivers/net/ice/base/ice_osdep.h | 5 ++--- drivers/net/ice/ice_dcf.c | 12 +++++------ drivers/net/ice/ice_dcf_ethdev.c | 10 ++++----- drivers/net/ice/ice_dcf_parent.c | 2 +- drivers/net/ice/ice_dcf_sched.c | 11 +++++----- drivers/net/ice/ice_ethdev.c | 13 ++++++----- drivers/net/ice/ice_fdir_filter.c | 32 ++++++++++++++-------------- drivers/net/ice/ice_tm.c | 6 +++--- drivers/net/qede/base/bcm_osal.h | 3 +-- drivers/net/qede/qede_ethdev.c | 2 +- drivers/net/qede/qede_filter.c | 16 ++++++-------- drivers/net/qede/qede_main.c | 13 ++++++----- drivers/net/qede/qede_sriov.c | 6 +++--- lib/ip_frag/rte_ipv4_fragmentation.c | 7 +++--- lib/vhost/vhost_crypto.c | 2 +- 21 files changed, 88 insertions(+), 103 deletions(-) -- 2.35.1