gcc warnings are resolved when built with Depends-on patch
(https://patches.dpdk.org/project/dpdk/patch/[email protected]/).
Did I indicate the dependency correctly (reference
https://doc.dpdk.org/guides/contributing/patches.html#patch-dependencies),
and is CI expected to apply dependent patches before the current patch
series?
../lib/net/rte_net.c:672:28: error: taking address of packed member of
‘struct rte_udp_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
672 | l4_cksum = &rte_pktmbuf_mtod_offset(mbuf,
struct rte_udp_hdr *,
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
673 | l4_offset)->dgram_cksum;
| ~~~~~~~~~~~~~~~~~~~~~~~
../lib/net/rte_net.c:675:28: error: taking address of packed member of
‘struct rte_tcp_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
675 | l4_cksum = &rte_pktmbuf_mtod_offset(mbuf,
struct rte_tcp_hdr *, l4_offset)->cksum;
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~