* [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4
@ 2017-04-17 14:35 Ferruh Yigit
2017-04-17 14:35 ` [dpdk-dev] [PATCH 2/2] eventdev: " Ferruh Yigit
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Ferruh Yigit @ 2017-04-17 14:35 UTC (permalink / raw)
To: Ferruh Yigit, Thomas Monjalon, Jerin Jacob; +Cc: dev
clang 4 gives "taking address of packed member may result in an
unaligned pointer value" warnings in a few locations [1].
Disabled "-Waddress-of-packed-member" warning for clang >= 4
[1] build errors:
.../lib/librte_eal/common/eal_common_memzone.c:275:25:
error: taking address of packed member 'mlock' of class or structure
'rte_mem_config' may result in an unaligned pointer value
[-Werror,-Waddress-of-packed-member]
rte_rwlock_write_lock(&mcfg->mlock);
^~~~~~~~~~~
.../lib/librte_ip_frag/rte_ipv4_reassembly.c:139:31:
error: taking address of packed member 'src_addr' of class or structure
'ipv4_hdr' may result in an unaligned pointer value
[-Werror,-Waddress-of-packed-member]
psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
^~~~~~~~~~~~~~~~
.../lib/librte_vhost/vhost_user.c:1037:34:
error: taking address of packed member 'payload' of class or structure
'VhostUserMsg' may result in an unaligned pointer value
[-Werror,-Waddress-of-packed-member]
vhost_user_set_vring_num(dev, &msg.payload.state);
^~~~~~~~~~~~~~~~~
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
mk/toolchain/clang/rte.vars.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/mk/toolchain/clang/rte.vars.mk b/mk/toolchain/clang/rte.vars.mk
index 7749b99..af34c10 100644
--- a/mk/toolchain/clang/rte.vars.mk
+++ b/mk/toolchain/clang/rte.vars.mk
@@ -79,5 +79,10 @@ include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
# workaround clang bug with warning "missing field initializer" for "= {0}"
WERROR_FLAGS += -Wno-missing-field-initializers
+# disable packed member unalign warnings
+ifeq ($(shell test $(CLANG_MAJOR_VERSION) -ge 4 && echo 1), 1)
+WERROR_FLAGS += -Wno-address-of-packed-member
+endif
+
export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
--
2.9.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* [dpdk-dev] [PATCH 2/2] eventdev: fix build for clang 4
2017-04-17 14:35 [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4 Ferruh Yigit
@ 2017-04-17 14:35 ` Ferruh Yigit
2017-04-19 13:23 ` [dpdk-dev] [PATCH 1/2] mk: " Thomas Monjalon
2024-10-11 17:36 ` Morten Brørup
2 siblings, 0 replies; 8+ messages in thread
From: Ferruh Yigit @ 2017-04-17 14:35 UTC (permalink / raw)
To: Ferruh Yigit, Thomas Monjalon, Jerin Jacob; +Cc: dev
build error:
.../lib/librte_eventdev/rte_eventdev.c:371:6:
error: logical not is only applied to the left hand side of this
bitwise operator [-Werror,-Wlogical-not-parentheses]
if (!dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT)
^
Added parentheses after the '!' to evaluate the bitwise operator first.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
lib/librte_eventdev/rte_eventdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_eventdev/rte_eventdev.c b/lib/librte_eventdev/rte_eventdev.c
index 8042988..5875eb0 100644
--- a/lib/librte_eventdev/rte_eventdev.c
+++ b/lib/librte_eventdev/rte_eventdev.c
@@ -368,7 +368,7 @@ rte_event_dev_configure(uint8_t dev_id,
(*dev->dev_ops->dev_infos_get)(dev, &info);
/* Check dequeue_timeout_ns value is in limit */
- if (!dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT) {
+ if (!(dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT)) {
if (dev_conf->dequeue_timeout_ns < info.min_dequeue_timeout_ns
|| dev_conf->dequeue_timeout_ns >
info.max_dequeue_timeout_ns) {
--
2.9.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4
2017-04-17 14:35 [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4 Ferruh Yigit
2017-04-17 14:35 ` [dpdk-dev] [PATCH 2/2] eventdev: " Ferruh Yigit
@ 2017-04-19 13:23 ` Thomas Monjalon
2024-10-11 17:36 ` Morten Brørup
2 siblings, 0 replies; 8+ messages in thread
From: Thomas Monjalon @ 2017-04-19 13:23 UTC (permalink / raw)
To: Ferruh Yigit, Jerin Jacob; +Cc: dev
17/04/2017 16:35, Ferruh Yigit:
> clang 4 gives "taking address of packed member may result in an
> unaligned pointer value" warnings in a few locations [1].
>
> Disabled "-Waddress-of-packed-member" warning for clang >= 4
>
> [1] build errors:
> .../lib/librte_eal/common/eal_common_memzone.c:275:25:
> error: taking address of packed member 'mlock' of class or structure
> 'rte_mem_config' may result in an unaligned pointer value
> [-Werror,-Waddress-of-packed-member]
> rte_rwlock_write_lock(&mcfg->mlock);
> ^~~~~~~~~~~
>
> .../lib/librte_ip_frag/rte_ipv4_reassembly.c:139:31:
> error: taking address of packed member 'src_addr' of class or structure
> 'ipv4_hdr' may result in an unaligned pointer value
> [-Werror,-Waddress-of-packed-member]
> psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
> ^~~~~~~~~~~~~~~~
>
> .../lib/librte_vhost/vhost_user.c:1037:34:
> error: taking address of packed member 'payload' of class or structure
> 'VhostUserMsg' may result in an unaligned pointer value
> [-Werror,-Waddress-of-packed-member]
> vhost_user_set_vring_num(dev, &msg.payload.state);
> ^~~~~~~~~~~~~~~~~
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Series applied, thanks
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4
2017-04-17 14:35 [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4 Ferruh Yigit
2017-04-17 14:35 ` [dpdk-dev] [PATCH 2/2] eventdev: " Ferruh Yigit
2017-04-19 13:23 ` [dpdk-dev] [PATCH 1/2] mk: " Thomas Monjalon
@ 2024-10-11 17:36 ` Morten Brørup
2024-10-11 17:48 ` Stephen Hemminger
2 siblings, 1 reply; 8+ messages in thread
From: Morten Brørup @ 2024-10-11 17:36 UTC (permalink / raw)
To: Ferruh Yigit, Stephen Hemminger, Robin Jarry
Cc: dev, Robin Jarry, Wathsala Vithanage, Min Zhou,
David Christensen, Stanislaw Kardach, bruce.richardson,
konstantin.v.ananyev, Vipin Varghese, Thomas Monjalon,
Jerin Jacob
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit
> Sent: Monday, 17 April 2017 16.36
>
> clang 4 gives "taking address of packed member may result in an
> unaligned pointer value" warnings in a few locations [1].
>
> Disabled "-Waddress-of-packed-member" warning for clang >= 4
>
> [1] build errors:
> .../lib/librte_eal/common/eal_common_memzone.c:275:25:
> error: taking address of packed member 'mlock' of class or structure
> 'rte_mem_config' may result in an unaligned pointer value
> [-Werror,-Waddress-of-packed-member]
> rte_rwlock_write_lock(&mcfg->mlock);
> ^~~~~~~~~~~
>
> .../lib/librte_ip_frag/rte_ipv4_reassembly.c:139:31:
> error: taking address of packed member 'src_addr' of class or structure
> 'ipv4_hdr' may result in an unaligned pointer value
> [-Werror,-Waddress-of-packed-member]
> psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
> ^~~~~~~~~~~~~~~~
>
> .../lib/librte_vhost/vhost_user.c:1037:34:
> error: taking address of packed member 'payload' of class or structure
> 'VhostUserMsg' may result in an unaligned pointer value
> [-Werror,-Waddress-of-packed-member]
> vhost_user_set_vring_num(dev, &msg.payload.state);
> ^~~~~~~~~~~~~~~~~
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> ---
> mk/toolchain/clang/rte.vars.mk | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/mk/toolchain/clang/rte.vars.mk
> b/mk/toolchain/clang/rte.vars.mk
> index 7749b99..af34c10 100644
> --- a/mk/toolchain/clang/rte.vars.mk
> +++ b/mk/toolchain/clang/rte.vars.mk
> @@ -79,5 +79,10 @@ include
> $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
> # workaround clang bug with warning "missing field initializer" for "=
> {0}"
> WERROR_FLAGS += -Wno-missing-field-initializers
>
> +# disable packed member unalign warnings
> +ifeq ($(shell test $(CLANG_MAJOR_VERSION) -ge 4 && echo 1), 1)
> +WERROR_FLAGS += -Wno-address-of-packed-member
> +endif
> +
> export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
> export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
> --
> 2.9.3
>
Revisiting an old patch...
Maybe the code causing the warnings should have been fixed instead of disabling the compiler warning?
We would probably handle this differently today... I wonder how many warnings it spews out with the warning enabled?
-Morten
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4
2024-10-11 17:36 ` Morten Brørup
@ 2024-10-11 17:48 ` Stephen Hemminger
2024-10-11 18:20 ` Morten Brørup
0 siblings, 1 reply; 8+ messages in thread
From: Stephen Hemminger @ 2024-10-11 17:48 UTC (permalink / raw)
To: Morten Brørup
Cc: Ferruh Yigit, Robin Jarry, dev, Wathsala Vithanage, Min Zhou,
David Christensen, Stanislaw Kardach, bruce.richardson,
konstantin.v.ananyev, Vipin Varghese, Thomas Monjalon,
Jerin Jacob
On Fri, 11 Oct 2024 19:36:08 +0200
Morten Brørup <mb@smartsharesystems.com> wrote:
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit
> > Sent: Monday, 17 April 2017 16.36
> >
> > clang 4 gives "taking address of packed member may result in an
> > unaligned pointer value" warnings in a few locations [1].
> >
> > Disabled "-Waddress-of-packed-member" warning for clang >= 4
> >
> > [1] build errors:
> > .../lib/librte_eal/common/eal_common_memzone.c:275:25:
> > error: taking address of packed member 'mlock' of class or structure
> > 'rte_mem_config' may result in an unaligned pointer value
> > [-Werror,-Waddress-of-packed-member]
> > rte_rwlock_write_lock(&mcfg->mlock);
> > ^~~~~~~~~~~
> >
> > .../lib/librte_ip_frag/rte_ipv4_reassembly.c:139:31:
> > error: taking address of packed member 'src_addr' of class or structure
> > 'ipv4_hdr' may result in an unaligned pointer value
> > [-Werror,-Waddress-of-packed-member]
> > psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
> > ^~~~~~~~~~~~~~~~
> >
> > .../lib/librte_vhost/vhost_user.c:1037:34:
> > error: taking address of packed member 'payload' of class or structure
> > 'VhostUserMsg' may result in an unaligned pointer value
> > [-Werror,-Waddress-of-packed-member]
> > vhost_user_set_vring_num(dev, &msg.payload.state);
> > ^~~~~~~~~~~~~~~~~
> >
> > Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> > ---
> > mk/toolchain/clang/rte.vars.mk | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/mk/toolchain/clang/rte.vars.mk
> > b/mk/toolchain/clang/rte.vars.mk
> > index 7749b99..af34c10 100644
> > --- a/mk/toolchain/clang/rte.vars.mk
> > +++ b/mk/toolchain/clang/rte.vars.mk
> > @@ -79,5 +79,10 @@ include
> > $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
> > # workaround clang bug with warning "missing field initializer" for "=
> > {0}"
> > WERROR_FLAGS += -Wno-missing-field-initializers
> >
> > +# disable packed member unalign warnings
> > +ifeq ($(shell test $(CLANG_MAJOR_VERSION) -ge 4 && echo 1), 1)
> > +WERROR_FLAGS += -Wno-address-of-packed-member
> > +endif
> > +
> > export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
> > export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
> > --
> > 2.9.3
> >
>
> Revisiting an old patch...
>
> Maybe the code causing the warnings should have been fixed instead of disabling the compiler warning?
>
> We would probably handle this differently today... I wonder how many warnings it spews out with the warning enabled?
>
> -Morten
>
With gcc-14 and re-enable packed-member and no-zero-length-bounds, lots and lots of warnings.
The ones related to locks are particularly concerning. Since many cpu's can't do locked operation
on unaligned fields. Mlx5 driver seems particularly bad.
190/3024] Compiling C object drivers/libtmp_rte_bus_dpaa.a.p/bus_dpaa_base_qbman_qman.c.o
../drivers/bus/dpaa/base/qbman/qman.c: In function ‘qman_ern_poll_free’:
../drivers/bus/dpaa/base/qbman/qman.c:813:30: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
813 | hw_fd_to_cpu(&swapped_msg.ern.fd);
| ^~~~~~~~~~~~~~~~~~~
../drivers/bus/dpaa/base/qbman/qman.c:815:22: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
815 | fd = &swapped_msg.ern.fd;
| ^~~~~~~~~~~~~~~~~~~
../drivers/bus/dpaa/base/qbman/qman.c: In function ‘__poll_portal_slow’:
../drivers/bus/dpaa/base/qbman/qman.c:857:25: warning: taking address of packed member of ‘struct qm_mcr_querycongestion’ may result in an unaligned pointer value [-Waddress-of-packed-member]
857 | &mcr->querycongestion.state, &p->cgrs[0]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/bus/dpaa/base/qbman/qman.c:884:30: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
884 | hw_fd_to_cpu(&swapped_msg.ern.fd);
| ^~~~~~~~~~~~~~~~~~~
[287/3024] Compiling C object lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o
../lib/ip_frag/rte_ipv4_reassembly.c: In function ‘rte_ipv4_frag_reassemble_packet’:
../lib/ip_frag/rte_ipv4_reassembly.c:113:37: warning: taking address of packed member of ‘struct rte_ipv4_hdr’ may result in an unaligned pointer value [-Waddress-of-packed-member]
113 | psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
| ^~~~~~~~~~~~~~~~~
[323/3024] Compiling C object drivers/libtmp_rte_bus_ifpga.a.p/bus_ifpga_ifpga_bus.c.o
../drivers/bus/ifpga/ifpga_bus.c: In function ‘ifpga_probe_all_drivers’:
../drivers/bus/ifpga/ifpga_bus.c:318:31: warning: taking address of packed member of ‘struct rte_afu_device’ may result in an unaligned pointer value [-Waddress-of-packed-member]
318 | if (rte_dev_is_probed(&afu_dev->device)) {
| ^~~~~~~~~~~~~~~~
../drivers/bus/ifpga/ifpga_bus.c: In function ‘ifpga_find_device’:
../drivers/bus/ifpga/ifpga_bus.c:455:25: warning: taking address of packed member of ‘struct rte_afu_device’ may result in an unaligned pointer value [-Waddress-of-packed-member]
455 | if (cmp(&afu_dev->device, data) == 0)
| ^~~~~~~~~~~~~~~~
../drivers/bus/ifpga/ifpga_bus.c:456:32: warning: taking address of packed member of ‘struct rte_afu_device’ may result in an unaligned pointer value [-Waddress-of-packed-member]
456 | return &afu_dev->device;
| ^~~~~~~~~~~~~~~~
[413/3024] Compiling C object drivers/libtmp_rte_bus_vmbus.a.p/bus_vmbus_vmbus_bufring.c.o
../drivers/bus/vmbus/vmbus_bufring.c: In function ‘vmbus_txbr_write’:
../drivers/bus/vmbus/vmbus_bufring.c:161:37: warning: taking address of packed member of ‘struct vmbus_bufring’ may result in an unaligned pointer value [-Waddress-of-packed-member]
161 | while (!rte_atomic32_cmpset(&vbr->windex, old_windex, next_windex))
| ^~~~~~~~~~~~
[415/3024] Compiling C object drivers/libtmp_rte_bus_vmbus.a.p/bus_vmbus_vmbus_channel.c.o
../drivers/bus/vmbus/vmbus_channel.c: In function ‘vmbus_set_monitor’:
../drivers/bus/vmbus/vmbus_channel.c:37:24: warning: taking address of packed member of ‘struct vmbus_mon_trig’ may result in an unaligned pointer value [-Waddress-of-packed-member]
37 | monitor_addr = &channel->monitor_page->trigs[trigger_index].pending;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[421/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_mp.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common_log.h:8,
from ../drivers/common/mlx5/mlx5_common_mp.c:13:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[422/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_pci.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common_log.h:8,
from ../drivers/common/mlx5/mlx5_common_pci.c:15:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[423/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common.c:16:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common.c: In function ‘mlx5_dev_mempool_subscribe’:
../drivers/common/mlx5/mlx5_common.c:593:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
593 | rte_rwlock_write_lock(&cdev->mr_scache.mprwlock);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common.c:605:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
605 | rte_rwlock_write_unlock(&cdev->mr_scache.mprwlock);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common.c: In function ‘mlx5_common_dev_dma_map’:
../drivers/common/mlx5/mlx5_common.c:1110:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1110 | rte_rwlock_write_lock(&dev->mr_scache.rwlock);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common.c:1129:41: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1129 | rte_rwlock_write_unlock(&dev->mr_scache.rwlock);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common.c:1142:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1142 | rte_rwlock_write_unlock(&dev->mr_scache.rwlock);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common.c: In function ‘mlx5_common_dev_dma_unmap’:
../drivers/common/mlx5/mlx5_common.c:1177:30: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1177 | rte_rwlock_read_lock(&dev->mr_scache.rwlock);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common.c:1180:40: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1180 | rte_rwlock_read_unlock(&dev->mr_scache.rwlock);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common.c:1199:32: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1199 | rte_rwlock_read_unlock(&dev->mr_scache.rwlock);
| ^~~~~~~~~~~~~~~~~~~~~~
[424/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_malloc.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common_log.h:8,
from ../drivers/common/mlx5/mlx5_malloc.c:11:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[425/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_linux_mlx5_common_auxiliary.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common_utils.h:11,
from ../drivers/common/mlx5/linux/mlx5_common_auxiliary.c:15:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[426/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_devx.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common_log.h:8,
from ../drivers/common/mlx5/mlx5_common_devx.c:15:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[428/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_utils.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common_utils.h:11,
from ../drivers/common/mlx5/mlx5_common_utils.c:11:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[433/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_linux_mlx5_common_verbs.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common_utils.h:11,
from ../drivers/common/mlx5/linux/mlx5_common_verbs.c:16:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[434/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_linux_mlx5_common_os.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/linux/mlx5_common_os.c:21:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[435/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_mr.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common_mr.c:15:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_mr_garbage_collect’:
../drivers/common/mlx5/mlx5_common_mr.c:533:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
533 | rte_rwlock_write_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:537:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
537 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_mr_expand_cache’:
../drivers/common/mlx5/mlx5_common_mr.c:619:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
619 | rte_rwlock_write_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:627:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
627 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_mr_create_secondary’:
../drivers/common/mlx5/mlx5_common_mr.c:666:30: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
666 | rte_rwlock_read_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:671:32: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
671 | rte_rwlock_read_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_mr_create_primary’:
../drivers/common/mlx5/mlx5_common_mr.c:824:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
824 | rte_rwlock_write_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:838:41: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
838 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:895:41: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
895 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:933:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
933 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:937:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
937 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mr_lookup_caches’:
../drivers/common/mlx5/mlx5_common_mr.c:1021:30: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1021 | rte_rwlock_read_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1026:40: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1026 | rte_rwlock_read_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1035:32: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1035 | rte_rwlock_read_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_mr_release_cache’:
../drivers/common/mlx5/mlx5_common_mr.c:1104:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1104 | rte_rwlock_write_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1117:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1117 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_mr_create_cache’:
../drivers/common/mlx5/mlx5_common_mr.c:1137:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1137 | mlx5_os_set_reg_mr_cb(&share_cache->reg_mr_cb,
| ^~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1138:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1138 | &share_cache->dereg_mr_cb);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1139:25: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1139 | rte_rwlock_init(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1140:25: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1140 | rte_rwlock_init(&share_cache->mprwlock);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_free_mr_by_addr’:
../drivers/common/mlx5/mlx5_common_mr.c:1255:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1255 | rte_rwlock_write_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1303:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1303 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_mr_mempool_register_primary’:
../drivers/common/mlx5/mlx5_common_mr.c:1685:30: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1685 | rte_rwlock_read_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1687:32: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1687 | rte_rwlock_read_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1713:39: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1713 | rte_rwlock_write_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1724:41: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1724 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1758:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1758 | rte_rwlock_write_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1771:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1771 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_mr_mempool_unregister_primary’:
../drivers/common/mlx5/mlx5_common_mr.c:1831:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1831 | rte_rwlock_write_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1844:33: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1844 | rte_rwlock_write_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_lookup_mempool_regs’:
../drivers/common/mlx5/mlx5_common_mr.c:1955:30: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1955 | rte_rwlock_read_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1959:32: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1959 | rte_rwlock_read_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c: In function ‘mlx5_mr_mempool_populate_cache’:
../drivers/common/mlx5/mlx5_common_mr.c:1997:30: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1997 | rte_rwlock_read_lock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
../drivers/common/mlx5/mlx5_common_mr.c:1999:32: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1999 | rte_rwlock_read_unlock(&share_cache->rwlock);
| ^~~~~~~~~~~~~~~~~~~~
[436/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_linux_mlx5_nl.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/linux/mlx5_nl.h:13,
from ../drivers/common/mlx5/linux/mlx5_nl.c:22:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[447/3024] Compiling C object drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_devx_cmds.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/common/mlx5/mlx5_common_log.h:8,
from ../drivers/common/mlx5/mlx5_devx_cmds.c:13:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[515/3024] Compiling C object drivers/libtmp_rte_net_ipn3ke.a.p/net_ipn3ke_ipn3ke_ethdev.c.o
../drivers/net/ipn3ke/ipn3ke_ethdev.c: In function ‘ipn3ke_vswitch_probe’:
../drivers/net/ipn3ke/ipn3ke_ethdev.c:491:35: warning: taking address of packed member of ‘struct rte_afu_device’ may result in an unaligned pointer value [-Waddress-of-packed-member]
491 | rte_spinlock_init(&afu_dev->shared.lock);
| ^~~~~~~~~~~~~~~~~~~~~
../drivers/net/ipn3ke/ipn3ke_ethdev.c:533:45: warning: taking address of packed member of ‘struct rte_afu_device’ may result in an unaligned pointer value [-Waddress-of-packed-member]
533 | retval = rte_eth_dev_create(&afu_dev->device, name,
| ^~~~~~~~~~~~~~~~
[653/3024] Compiling C object drivers/libtmp_rte_net_atlantic.a.p/net_atlantic_hw_atl_hw_atl_utils.c.o
../drivers/net/atlantic/hw_atl/hw_atl_utils.c: In function ‘aq_fw1x_set_wol’:
../drivers/net/atlantic/hw_atl/hw_atl_utils.c:872:50: warning: taking address of packed member of ‘struct hw_aq_atl_utils_fw_rpc’ may result in an unaligned pointer value [-Waddress-of-packed-member]
872 | (struct rte_ether_addr *)&prpc->msg_wol.wol_pattern);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
[683/3024] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_hwrm.c.o
../drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_func_backing_store_qcaps_v2’:
../drivers/net/bnxt/bnxt_hwrm.c:6363:33: warning: taking address of packed member of ‘struct hwrm_func_backing_store_qcaps_v2_output’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6363 | for (i = 0, p = &resp->split_entry_0; i < ctxm->split_entry_cnt;
| ^~~~~~~~~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_func_backing_store_cfg_v2’:
../drivers/net/bnxt/bnxt_hwrm.c:6577:33: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_v2_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6577 | for (k = 0, p = &req.split_entry_0; k < ctxm->split_entry_cnt; k++)
| ^~~~~~~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c:6588:39: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_v2_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6588 | &req.page_dir);
| ^~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_func_backing_store_cfg’:
../drivers/net/bnxt/bnxt_hwrm.c:6633:39: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6633 | &req.qpc_page_dir);
| ^~~~~~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c:6644:39: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6644 | &req.srq_page_dir);
| ^~~~~~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c:6655:39: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6655 | &req.cq_page_dir);
| ^~~~~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c:6667:39: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6667 | &req.vnic_page_dir);
| ^~~~~~~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c:6676:39: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6676 | &req.stat_page_dir);
| ^~~~~~~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c:6680:23: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6680 | num_entries = &req.tqm_sp_num_entries;
| ^~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c:6682:18: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6682 | pg_dir = &req.tqm_sp_page_dir;
| ^~~~~~~~~~~~~~~~~~~~
../drivers/net/bnxt/bnxt_hwrm.c:6704:39: warning: taking address of packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6704 | &req.tqm_ring8_page_dir);
| ^~~~~~~~~~~~~~~~~~~~~~~
[749/3024] Compiling C object drivers/libtmp_rte_net_iavf.a.p/net_iavf_iavf_vchnl.c.o
../drivers/net/iavf/iavf_vchnl.c: In function ‘iavf_handle_virtchnl_msg’:
../drivers/net/iavf/iavf_vchnl.c:556:73: warning: taking address of packed member of ‘struct inline_ipsec_msg’ may result in an unaligned pointer value [-Waddress-of-packed-member]
556 | imsg->ipsec_data.event;
| ^~~~
[785/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_ethdev.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_rxtx.h:21,
from ../drivers/net/mlx5/mlx5_ethdev.c:25:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_ethdev.c:26:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_ethdev.c:27:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[788/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_mac.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_mac.c:17:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[789/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5.c:30:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5.c:39:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5.c:40:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5.c:43:
../drivers/net/mlx5/linux/mlx5_flow_os.h: In function ‘mlx5_flow_os_create_flow_action_modify_header’:
../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
231 | actions_len, (uint64_t *)res->actions);
| ^~~
[790/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rss.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_rss.c:17:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_rss.c:19:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[791/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_flex.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow_flex.c:7:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_flow_flex.c:8:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[792/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_meter.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow_meter.c:15:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_flow_meter.c:16:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[794/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rxmode.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_rxmode.c:13:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[795/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_aso.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow_aso.c:13:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_flow_aso.c:14:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow_aso.c:15:
../drivers/net/mlx5/mlx5_hws_cnt.h: In function ‘mlx5_hws_age_cnt_get’:
../drivers/net/mlx5/mlx5_hws_cnt.h:672:45: warning: taking address of packed member of ‘struct mlx5_hws_age_param’ may result in an unaligned pointer value [-Waddress-of-packed-member]
672 | ¶m->own_cnt_index, age_idx) < 0)
| ^~~~~~~~~~~~~~~~~~~~~
[797/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_stats.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_stats.c:15:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_stats.c:19:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_stats.c:20:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[798/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rxtx.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_rxtx.c:20:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_rxtx.c:27:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_rxtx.c:28:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[799/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_trigger.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_trigger.c:16:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_trigger.c:17:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_trigger.c:18:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[800/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rxq.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_rxq.c:24:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_rxq.c:29:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rxq.c: In function ‘mlx5_rxq_new’:
../drivers/net/mlx5/mlx5_rxq.c:1839:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1839 | &priv->sh->cdev->mr_scache.dev_gen, socket)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[801/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_tx.c:20:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_tx.c:27:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[802/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rx.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_rx.c:20:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_rx.c:30:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[803/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.c:28:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_flow.c:29:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.c:30:
../drivers/net/mlx5/linux/mlx5_flow_os.h: In function ‘mlx5_flow_os_create_flow_action_modify_header’:
../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
231 | actions_len, (uint64_t *)res->actions);
| ^~~
In file included from ../drivers/net/mlx5/mlx5_flow.c:31:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[804/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_txq.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_txq.c:20:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_txq.c:27:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
../drivers/net/mlx5/mlx5_txq.c: In function ‘mlx5_txq_new’:
../drivers/net/mlx5/mlx5_txq.c:1085:31: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1085 | &priv->sh->cdev->mr_scache.dev_gen, socket)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[805/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_vlan.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_vlan.c:16:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_vlan.c:19:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[806/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_txpp.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_txpp.c:18:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_txpp.c:19:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_txpp.c:20:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
../drivers/net/mlx5/mlx5_txpp.c: In function ‘mlx5_txpp_fill_wqe_rearm_queue’:
../drivers/net/mlx5/mlx5_txpp.c:191:22: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
191 | cs = &wqe[i + 0].cseg;
| ^~~~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_txpp.c:204:22: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
204 | cs = &wqe[i + 1].cseg;
| ^~~~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_txpp.c: In function ‘mlx5_txpp_fill_wqe_clock_queue’:
../drivers/net/mlx5/mlx5_txpp.c:289:36: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
289 | struct mlx5_wqe_cseg *cs = &wqe->cseg;
| ^~~~~~~~~~
[807/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_nta_rss.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_nta_rss.c:8:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_nta_rss.c:10:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_nta_rss.c:11:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[808/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_devx.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_devx.c:21:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_devx.c:23:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_devx.c:24:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_devx.c:28:
../drivers/net/mlx5/linux/mlx5_flow_os.h: In function ‘mlx5_flow_os_create_flow_action_modify_header’:
../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
231 | actions_len, (uint64_t *)res->actions);
| ^~~
[809/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_utils.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_utils.h:20,
from ../drivers/net/mlx5/mlx5_utils.c:9:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[810/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_geneve.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow_geneve.c:11:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_flow_geneve.c:12:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[811/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_quota.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_utils.h:20,
from ../drivers/net/mlx5/mlx5_flow_quota.c:8:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_flow_quota.c:9:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[812/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_mpw.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_tx.h:18,
from ../drivers/net/mlx5/mlx5_tx_mpw.c:6:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[813/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_verbs.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow_verbs.c:24:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_flow_verbs.c:25:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow_verbs.c:26:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow_verbs.c:27:
../drivers/net/mlx5/linux/mlx5_flow_os.h: In function ‘mlx5_flow_os_create_flow_action_modify_header’:
../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
231 | actions_len, (uint64_t *)res->actions);
| ^~~
../drivers/net/mlx5/mlx5_flow_verbs.c: In function ‘flow_verbs_remove’:
../drivers/net/mlx5/mlx5_flow_verbs.c:2016:53: warning: taking address of packed member of ‘struct mlx5_flow_handle’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2016 | mlx5_vlan_vmwa_release(dev, &handle->vf_vlan);
| ^~~~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_verbs.c: In function ‘flow_verbs_apply’:
../drivers/net/mlx5/mlx5_flow_verbs.c:2124:53: warning: taking address of packed member of ‘struct mlx5_flow_handle’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2124 | mlx5_vlan_vmwa_acquire(dev, &handle->vf_vlan);
| ^~~~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_verbs.c:2139:53: warning: taking address of packed member of ‘struct mlx5_flow_handle’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2139 | mlx5_vlan_vmwa_release(dev, &handle->vf_vlan);
| ^~~~~~~~~~~~~~~~
[814/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_socket.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_utils.h:20,
from ../drivers/net/mlx5/linux/mlx5_socket.c:18:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[815/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rxtx_vec.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_rxtx_vec.c:19:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_rxtx_vec.c:22:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[816/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_os.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/linux/mlx5_os.c:35:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/linux/mlx5_os.c:45:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/linux/mlx5_os.c:46:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[817/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_hws_cnt.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_utils.h:20,
from ../drivers/net/mlx5/mlx5_hws_cnt.c:16:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_hws_cnt.h:10,
from ../drivers/net/mlx5/mlx5_hws_cnt.c:17:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
../drivers/net/mlx5/mlx5_hws_cnt.h: In function ‘mlx5_hws_age_cnt_get’:
../drivers/net/mlx5/mlx5_hws_cnt.h:672:45: warning: taking address of packed member of ‘struct mlx5_hws_age_param’ may result in an unaligned pointer value [-Waddress-of-packed-member]
672 | ¶m->own_cnt_index, age_idx) < 0)
| ^~~~~~~~~~~~~~~~~~~~~
[818/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_ethdev_os.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/linux/mlx5_ethdev_os.c:41:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[819/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_verbs.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/linux/mlx5_verbs.c:22:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/linux/mlx5_verbs.c:25:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/linux/mlx5_verbs.c:26:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[820/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_mp_os.c.o
In file included from ../drivers/net/mlx5/linux/mlx5_mp_os.c:14:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/linux/mlx5_mp_os.c:19:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/linux/mlx5_mp_os.c:20:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[821/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_vlan_os.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/linux/mlx5_vlan_os.c:22:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[822/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_flow_os.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/linux/mlx5_flow_os.h:8,
from ../drivers/net/mlx5/linux/mlx5_flow_os.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
../drivers/net/mlx5/linux/mlx5_flow_os.h: In function ‘mlx5_flow_os_create_flow_action_modify_header’:
../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
231 | actions_len, (uint64_t *)res->actions);
| ^~~
[823/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_dv.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow_dv.c:35:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_flow_dv.c:37:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow_dv.c:38:
../drivers/net/mlx5/linux/mlx5_flow_os.h: In function ‘mlx5_flow_os_create_flow_action_modify_header’:
../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
231 | actions_len, (uint64_t *)res->actions);
| ^~~
In file included from ../drivers/net/mlx5/mlx5_flow_dv.c:39:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_convert_modify_action’:
../drivers/net/mlx5/mlx5_flow_dv.c:414:49: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
414 | struct mlx5_modification_cmd *actions = resource->actions;
| ^~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_convert_action_modify_vlan_vid’:
../drivers/net/mlx5/mlx5_flow_dv.c:677:49: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
677 | struct mlx5_modification_cmd *actions = resource->actions;
| ^~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_convert_action_set_reg’:
../drivers/net/mlx5/mlx5_flow_dv.c:1030:49: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1030 | struct mlx5_modification_cmd *actions = resource->actions;
| ^~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_modify_create_cb’:
../drivers/net/mlx5/mlx5_flow_dv.c:6270:43: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6270 | .data = (__be64 *)ref->actions
| ^~~
../drivers/net/mlx5/mlx5_flow_dv.c:6289:59: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6289 | data_len, &entry->action);
| ^~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c:6299:16: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6299 | return &entry->entry;
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_modify_clone_cb’:
../drivers/net/mlx5/mlx5_flow_dv.c:6323:16: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6323 | return &entry->entry;
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_modify_hdr_resource_register’:
../drivers/net/mlx5/mlx5_flow_dv.c:6664:17: warning: taking address of packed member of ‘struct mlx5_flow_handle_dv’ may result in an unaligned pointer value [-Waddress-of-packed-member]
6664 | &dev_flow->handle->dvh.modify_hdr, error);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_apply’:
../drivers/net/mlx5/mlx5_flow_dv.c:15952:61: warning: taking address of packed member of ‘struct mlx5_flow_handle’ may result in an unaligned pointer value [-Waddress-of-packed-member]
15952 | dv->actions, &dh->drv_flow);
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c:15972:53: warning: taking address of packed member of ‘struct mlx5_flow_handle’ may result in an unaligned pointer value [-Waddress-of-packed-member]
15972 | mlx5_vlan_vmwa_acquire(dev, &dh->vf_vlan);
| ^~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c:15989:53: warning: taking address of packed member of ‘struct mlx5_flow_handle’ may result in an unaligned pointer value [-Waddress-of-packed-member]
15989 | mlx5_vlan_vmwa_release(dev, &dh->vf_vlan);
| ^~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_modify_hdr_resource_release’:
../drivers/net/mlx5/mlx5_flow_dv.c:16142:61: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
16142 | return mlx5_hlist_unregister(priv->sh->modify_cmds, &entry->entry);
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_remove’:
../drivers/net/mlx5/mlx5_flow_dv.c:16423:53: warning: taking address of packed member of ‘struct mlx5_flow_handle’ may result in an unaligned pointer value [-Waddress-of-packed-member]
16423 | mlx5_vlan_vmwa_release(dev, &dh->vf_vlan);
| ^~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_discover_priorities’:
../drivers/net/mlx5/mlx5_flow_dv.c:20410:51: warning: taking address of packed member of ‘struct mlx5_flow_handle’ may result in an unaligned pointer value [-Waddress-of-packed-member]
20410 | flow.dv.actions, &flow.handle->drv_flow);
| ^~~~~~~~~~~~~~~~~~~~~~
[824/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_context.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_context.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[825/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_table.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_table.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[826/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_buddy.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_buddy.c:7:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[827/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_matcher.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_matcher.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[828/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_rule.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_rule.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[829/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_pool.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_pool.c:8:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[830/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_send.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_send.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[831/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_cmd.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_cmd.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[832/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_pat_arg.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_pat_arg.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[834/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_debug.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_debug.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[835/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_action.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_action.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[837/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_crc32.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_crc32.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[838/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_bwc.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_bwc.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[846/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_definer.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow.h:19,
from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
from ../drivers/net/mlx5/hws/mlx5dr_definer.c:5:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[849/3024] Compiling C object drivers/libtmp_rte_raw_ifpga.a.p/raw_ifpga_ifpga_rawdev.c.o
../drivers/raw/ifpga/ifpga_rawdev.c: In function ‘ifpga_fill_afu_dev’:
../drivers/raw/ifpga/ifpga_rawdev.c:597:40: warning: taking address of packed member of ‘struct rte_afu_device’ may result in an unaligned pointer value [-Waddress-of-packed-member]
597 | struct rte_mem_resource *res = afu_dev->mem_resource;
| ^~~~~~~
[850/3024] Compiling C object drivers/libtmp_rte_raw_ifpga.a.p/raw_ifpga_afu_pmd_core.c.o
../drivers/raw/ifpga/afu_pmd_core.c: In function ‘afu_rawdev_create’:
../drivers/raw/ifpga/afu_pmd_core.c:312:26: warning: taking address of packed member of ‘struct rte_afu_device’ may result in an unaligned pointer value [-Waddress-of-packed-member]
312 | rawdev->device = &afu_dev->device;
| ^~~~~~~~~~~~~~~~
[891/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_txpp.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_tx.h:18,
from ../drivers/net/mlx5/mlx5_tx_txpp.c:6:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[892/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_empw.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_tx.h:18,
from ../drivers/net/mlx5/mlx5_tx_empw.c:6:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[894/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o
In file included from ../drivers/net/mlx5/mlx5.h:28,
from ../drivers/net/mlx5/mlx5_flow_hw.c:11:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
from ../drivers/net/mlx5/mlx5_flow_hw.c:14:
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow_hw.c:15:
../drivers/net/mlx5/linux/mlx5_flow_os.h: In function ‘mlx5_flow_os_create_flow_action_modify_header’:
../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
231 | actions_len, (uint64_t *)res->actions);
| ^~~
In file included from ../drivers/net/mlx5/mlx5_flow_hw.c:16:
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
In file included from ../drivers/net/mlx5/mlx5_flow_hw.c:19:
../drivers/net/mlx5/mlx5_hws_cnt.h: In function ‘mlx5_hws_age_cnt_get’:
../drivers/net/mlx5/mlx5_hws_cnt.h:672:45: warning: taking address of packed member of ‘struct mlx5_hws_age_param’ may result in an unaligned pointer value [-Waddress-of-packed-member]
672 | ¶m->own_cnt_index, age_idx) < 0)
| ^~~~~~~~~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_hw.c: In function ‘flow_hw_converted_mhdr_cmds_append’:
../drivers/net/mlx5/mlx5_flow_hw.c:1495:53: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1495 | struct mlx5_modification_cmd *src = &resource->actions[idx];
| ^~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_hw.c: In function ‘flow_hw_modify_field_compile’:
../drivers/net/mlx5/mlx5_flow_hw.c:1620:45: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1620 | if (flow_hw_should_insert_nop(mhdr, &resource->actions[0])) {
| ^~~~~~~~~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_hw.c: In function ‘flow_hw_shared_action_construct’:
../drivers/net/mlx5/mlx5_flow_hw.c:3205:51: warning: taking address of packed member of ‘struct mlx5_hws_age_param’ may result in an unaligned pointer value [-Waddress-of-packed-member]
3205 | ¶m->queue_id, &age_cnt,
| ^~~~~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_flow_hw.c: In function ‘flow_hw_destroy’:
../drivers/net/mlx5/mlx5_flow_hw.c:13809:25: warning: taking address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result in an unaligned pointer value [-Waddress-of-packed-member]
13809 | &flow->nt2hws->modify_hdr->entry);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[896/3024] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_nompw.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/net/mlx5/mlx5_tx.h:18,
from ../drivers/net/mlx5/mlx5_tx_nompw.c:6:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
| ^~~~~~~~~~
[948/3024] Compiling C object lib/librte_vhost.a.p/vhost_vhost_user.c.o
../lib/vhost/vhost_user.c: In function ‘vhost_user_set_vring_addr’:
../lib/vhost/vhost_user.c:980:41: warning: taking address of packed member of ‘struct VhostUserMsg’ may result in an unaligned pointer value [-Waddress-of-packed-member]
980 | struct vhost_vring_addr *addr = &ctx->msg.payload.addr;
| ^~~~~~~~~~~~~~~~~~~~~~
../lib/vhost/vhost_user.c: In function ‘vhost_user_postcopy_register’:
../lib/vhost/vhost_user.c:1248:18: warning: taking address of packed member of ‘struct VhostUserMsg’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1248 | memory = &ctx->msg.payload.memory;
| ^~~~~~~~~~~~~~~~~~~~~~~~
../lib/vhost/vhost_user.c: In function ‘vhost_user_set_mem_table’:
../lib/vhost/vhost_user.c:1390:42: warning: taking address of packed member of ‘struct VhostUserMsg’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1390 | struct VhostUserMemory *memory = &ctx->msg.payload.memory;
| ^~~~~~~~~~~~~~~~~~~~~~~~
../lib/vhost/vhost_user.c: In function ‘vhost_user_iotlb_msg’:
../lib/vhost/vhost_user.c:2707:40: warning: taking address of packed member of ‘struct VhostUserMsg’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2707 | struct vhost_iotlb_msg *imsg = &ctx->msg.payload.iotlb;
| ^~~~~~~~~~~~~~~~~~~~~~~
../lib/vhost/vhost_user.c: In function ‘read_vhost_message’:
../lib/vhost/vhost_user.c:2919:20: warning: taking address of packed member of ‘struct vhu_msg_context’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2919 | ctx->fds, VHOST_MEMORY_MAX_NREGIONS, &ctx->fd_num);
| ~~~^~~~~
../lib/vhost/vhost_user.c:2919:54: warning: taking address of packed member of ‘struct vhu_msg_context’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2919 | ctx->fds, VHOST_MEMORY_MAX_NREGIONS, &ctx->fd_num);
| ^~~~~~~~~~~~
../lib/vhost/vhost_user.c: In function ‘send_vhost_message’:
../lib/vhost/vhost_user.c:2960:57: warning: taking address of packed member of ‘struct vhu_msg_context’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2960 | VHOST_USER_HDR_SIZE + ctx->msg.size, ctx->fds, ctx->fd_num);
| ~~~^~~~~
[991/3024] Compiling C object lib/librte_vhost.a.p/vhost_vhost_crypto.c.o
../lib/vhost/vhost_crypto.c: In function ‘vhost_crypto_msg_post_handler’:
../lib/vhost/vhost_crypto.c:458:33: warning: taking address of packed member of ‘struct VhostUserMsg’ may result in an unaligned pointer value [-Waddress-of-packed-member]
458 | &ctx->msg.payload.crypto_session);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1088/3024] Compiling C object lib/librte_pipeline.a.p/pipeline_rte_table_action.c.o
../lib/pipeline/rte_table_action.c: In function ‘mtr_apply’:
../lib/pipeline/rte_table_action.c:278:49: warning: taking address of packed member of ‘struct mtr_trtcm_data’ may result in an unaligned pointer value [-Waddress-of-packed-member]
278 | status = rte_meter_trtcm_config(&data_tc->trtcm,
| ^~~~~~~~~~~~~~~
../lib/pipeline/rte_table_action.c: In function ‘pkt_work_mtr’:
../lib/pipeline/rte_table_action.c:325:17: warning: taking address of packed member of ‘struct mtr_trtcm_data’ may result in an unaligned pointer value [-Waddress-of-packed-member]
325 | &data->trtcm,
| ^~~~~~~~~~~~
[1093/3024] Compiling C object drivers/libtmp_rte_dma_ioat.a.p/dma_ioat_ioat_dmadev.c.o
../drivers/dma/ioat/ioat_dmadev.c: In function ‘ioat_dmadev_create’:
../drivers/dma/ioat/ioat_dmadev.c:648:26: warning: taking address of packed member of ‘struct ioat_registers’ may result in an unaligned pointer value [-Waddress-of-packed-member]
648 | ioat->doorbell = &ioat->regs->dmacount;
| ^~~~~~~~~~~~~~~~~~~~~
[1102/3024] Compiling C object drivers/libtmp_rte_net_ark.a.p/net_ark_ark_ethdev_rx.c.o
../drivers/net/ark/ark_ethdev_rx.c: In function ‘eth_ark_recv_pkts’:
../drivers/net/ark/ark_ethdev_rx.c:332:45: warning: taking address of packed member of ‘struct ark_rx_meta’ may result in an unaligned pointer value [-Waddress-of-packed-member]
332 | rx_user_meta_hook(mbuf, meta->user_meta, queue->ext_user_data);
| ~~~~^~~~~~~~~~~
[1183/3024] Compiling C object drivers/libtmp_rte_net_enic.a.p/net_enic_enic_fm_flow.c.o
../drivers/net/enic/enic_fm_flow.c: In function ‘enic_fm_copy_item_vlan’:
../drivers/net/enic/enic_fm_flow.c:461:28: warning: taking address of packed member of ‘union <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
461 | eth_mask = (void *)&fm_mask->l2.eth;
| ^~~~~~~~~~~~~~~~
../drivers/net/enic/enic_fm_flow.c:462:27: warning: taking address of packed member of ‘union <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
462 | eth_val = (void *)&fm_data->l2.eth;
| ^~~~~~~~~~~~~~~~
[1246/3024] Compiling C object drivers/libtmp_rte_net_ionic.a.p/net_ionic_ionic_ethdev.c.o
../drivers/net/ionic/ionic_ethdev.c: In function ‘ionic_dev_info_get’:
../drivers/net/ionic/ionic_ethdev.c:405:39: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
405 | union ionic_lif_config *cfg = &ident->lif.eth.config;
| ^~~~~~~~~~~~~~~~~~~~~~
[1249/3024] Compiling C object drivers/libtmp_rte_net_ionic.a.p/net_ionic_ionic_lif.c.o
../drivers/net/ionic/ionic_lif.c: In function ‘ionic_lif_configure’:
../drivers/net/ionic/ionic_lif.c:1921:39: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1921 | union ionic_lif_config *cfg = &ident->lif.eth.config;
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/ionic/ionic_lif.c: In function ‘ionic_lif_identify’:
../drivers/net/ionic/ionic_lif.c:2094:39: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2094 | union ionic_lif_config *cfg = &ident->lif.eth.config;
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/ionic/ionic_lif.c: In function ‘ionic_lifs_size’:
../drivers/net/ionic/ionic_lif.c:2136:39: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2136 | union ionic_lif_config *cfg = &ident->lif.eth.config;
| ^~~~~~~~~~~~~~~~~~~~~~
[1260/3024] Compiling C object drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4.c.o
In file included from ../drivers/net/mlx4/mlx4.c:49:
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1261/3024] Compiling C object drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_intr.c.o
In file included from ../drivers/net/mlx4/mlx4_intr.c:32:
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1263/3024] Compiling C object drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_mp.c.o
In file included from ../drivers/net/mlx4/mlx4_mp.c:16:
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1265/3024] Compiling C object drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_flow.c.o
In file included from ../drivers/net/mlx4/mlx4_flow.c:40:
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_flow.c: In function ‘mlx4_flow_internal’:
../drivers/net/mlx4/mlx4_flow.c:1364:17: warning: taking address of packed member of ‘struct rte_vlan_hdr’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1364 | &vlan_spec.hdr.vlan_tci :
| ^~~~~~~~~~~~~~~~~~~~~~~
[1267/3024] Compiling C object drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_ethdev.c.o
In file included from ../drivers/net/mlx4/mlx4_ethdev.c:46:
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1268/3024] Compiling C object drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_mr.c.o
In file included from ../drivers/net/mlx4/mlx4_mr.c:37:
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1270/3024] Compiling C object drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_txq.c.o
In file included from ../drivers/net/mlx4/mlx4_txq.c:38:
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1271/3024] Compiling C object drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_rxq.c.o
In file included from ../drivers/net/mlx4/mlx4_rxq.c:38:
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1275/3024] Compiling C object drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_rxtx.c.o
In file included from ../drivers/net/mlx4/mlx4_rxtx.c:33:
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1422/3024] Compiling C object drivers/libtmp_rte_net_tap.a.p/net_tap_rte_eth_tap.c.o
../drivers/net/tap/rte_eth_tap.c: In function ‘tap_write_mbufs’:
../drivers/net/tap/rte_eth_tap.c:619:44: warning: taking address of packed member of ‘struct rte_udp_hdr’ may result in an unaligned pointer value [-Waddress-of-packed-member]
619 | l4_cksum = &udp_hdr->dgram_cksum;
| ^~~~~~~~~~~~~~~~~~~~~
../drivers/net/tap/rte_eth_tap.c:625:44: warning: taking address of packed member of ‘struct rte_tcp_hdr’ may result in an unaligned pointer value [-Waddress-of-packed-member]
625 | l4_cksum = &tcp_hdr->cksum;
| ^~~~~~~~~~~~~~~
[1444/3024] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_user_vhost_user.c.o
../drivers/net/virtio/virtio_user/vhost_user.c: In function ‘vhost_user_set_memory_table’:
../drivers/net/virtio/virtio_user/vhost_user.c:474:17: warning: taking address of packed member of ‘struct vhost_user_msg’ may result in an unaligned pointer value [-Waddress-of-packed-member]
474 | wa.vm = &msg.payload.memory;
| ^~~~~~~~~~~~~~~~~~~
[1485/3024] Compiling C object drivers/libtmp_rte_crypto_ionic.a.p/crypto_ionic_ionic_crypto_cmds.c.o
../drivers/crypto/ionic/ionic_crypto_cmds.c: In function ‘iocpt_dev_identify’:
../drivers/crypto/ionic/ionic_crypto_cmds.c:346:39: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
346 | union iocpt_lif_config *cfg = &ident->config;
| ^~~~~~~~~~~~~~
[1494/3024] Compiling C object drivers/libtmp_rte_crypto_mlx5.a.p/crypto_mlx5_mlx5_crypto.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/crypto/mlx5/mlx5_crypto.c:14:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1496/3024] Compiling C object drivers/libtmp_rte_crypto_mlx5.a.p/crypto_mlx5_mlx5_crypto_xts.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/crypto/mlx5/mlx5_crypto_xts.c:14:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/crypto/mlx5/mlx5_crypto_xts.c: In function ‘mlx5_crypto_xts_wqe_set’:
../drivers/crypto/mlx5/mlx5_crypto_xts.c:262:38: warning: taking address of packed member of ‘struct mlx5_umr_wqe’ may result in an unaligned pointer value [-Waddress-of-packed-member]
262 | struct mlx5_wqe_cseg *cseg = &umr->ctr;
| ^~~~~~~~~
../drivers/crypto/mlx5/mlx5_crypto_xts.c: In function ‘mlx5_crypto_xts_queue_pair_setup’:
../drivers/crypto/mlx5/mlx5_crypto_xts.c:517:45: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
517 | if (mlx5_mr_ctrl_init(&qp->mr_ctrl, &priv->cdev->mr_scache.dev_gen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1499/3024] Compiling C object drivers/libtmp_rte_crypto_mlx5.a.p/crypto_mlx5_mlx5_crypto_dek.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/crypto/mlx5/mlx5_crypto_utils.h:8,
from ../drivers/crypto/mlx5/mlx5_crypto_dek.c:13:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1507/3024] Compiling C object drivers/libtmp_rte_crypto_caam_jr.a.p/crypto_caam_jr_caam_jr.c.o
../drivers/crypto/caam_jr/caam_jr.c: In function ‘hw_poll_job_ring’:
../drivers/crypto/caam_jr/caam_jr.c:584:29: warning: taking address of packed member of ‘struct sec_outring_entry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
584 | temp_addr = &(job_ring->output_ring[job_ring->cidx].desc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1508/3024] Compiling C object drivers/libtmp_rte_crypto_mlx5.a.p/crypto_mlx5_mlx5_crypto_gcm.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/crypto/mlx5/mlx5_crypto_gcm.c:15:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/crypto/mlx5/mlx5_crypto_gcm.c: In function ‘mlx5_crypto_gcm_qp_setup’:
../drivers/crypto/mlx5/mlx5_crypto_gcm.c:345:45: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
345 | if (mlx5_mr_ctrl_init(&qp->mr_ctrl, &priv->cdev->mr_scache.dev_gen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1520/3024] Compiling C object drivers/libtmp_rte_compress_mlx5.a.p/compress_mlx5_mlx5_compress.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/compress/mlx5/mlx5_compress.c:15:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/compress/mlx5/mlx5_compress.c: In function ‘mlx5_compress_qp_setup’:
../drivers/compress/mlx5/mlx5_compress.c:181:45: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
181 | if (mlx5_mr_ctrl_init(&qp->mr_ctrl, &priv->cdev->mr_scache.dev_gen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1522/3024] Compiling C object drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_regex_devx.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/regex/mlx5/mlx5_regex.h:13,
from ../drivers/regex/mlx5/mlx5_regex_devx.c:12:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1524/3024] Compiling C object drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_regex.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/regex/mlx5/mlx5_regex.c:14:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1525/3024] Compiling C object drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_rxp.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/regex/mlx5/mlx5_regex.h:13,
from ../drivers/regex/mlx5/mlx5_rxp.c:18:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1527/3024] Compiling C object drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_regex_control.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/regex/mlx5/mlx5_regex_control.c:16:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
../drivers/regex/mlx5/mlx5_regex_control.c: In function ‘mlx5_regex_qp_setup’:
../drivers/regex/mlx5/mlx5_regex_control.c:250:47: warning: taking address of packed member of ‘struct mlx5_mr_share_cache’ may result in an unaligned pointer value [-Waddress-of-packed-member]
250 | ret = mlx5_mr_ctrl_init(&qp->mr_ctrl, &priv->cdev->mr_scache.dev_gen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1532/3024] Compiling C object drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_regex_fastpath.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/regex/mlx5/mlx5_regex_fastpath.c:20:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1543/3024] Compiling C object drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_event.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/vdpa/mlx5/mlx5_vdpa_event.c:19:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1544/3024] Compiling C object drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/vdpa/mlx5/mlx5_vdpa.c:20:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1545/3024] Compiling C object drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_lm.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/vdpa/mlx5/mlx5_vdpa_utils.h:8,
from ../drivers/vdpa/mlx5/mlx5_vdpa_lm.c:7:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1547/3024] Compiling C object drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_mem.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/vdpa/mlx5/mlx5_vdpa_mem.c:12:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1548/3024] Compiling C object drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_virtq.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/vdpa/mlx5/mlx5_vdpa_virtq.c:12:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1552/3024] Compiling C object drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_steer.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/vdpa/mlx5/mlx5_vdpa_steer.c:10:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1553/3024] Compiling C object drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_cthread.c.o
In file included from ../drivers/common/mlx5/mlx5_common.h:27,
from ../drivers/vdpa/mlx5/mlx5_vdpa_cthread.c:16:
../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl->mru,
| ^~~~~~~~~~~~~
[1776/3024] Compiling C object lib/librte_efd.a.p/efd_rte_efd.c.o
../lib/efd/rte_efd.c: In function ‘efd_lookup_internal’:
../lib/efd/rte_efd.c:1295:56: warning: taking address of packed member of ‘struct efd_online_group_entry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1295 | return efd_lookup_internal_scalar(group->hash_idx,
| ~~~~~^~~~~~~~~~
../lib/efd/rte_efd.c:1296:46: warning: taking address of packed member of ‘struct efd_online_group_entry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1296 | group->lookup_table,
| ~~~~~^~~~~~~~~~~~~~
[3024/3024] Linking target app/dpdk-test
~/DPDK/main $
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4
2024-10-11 17:48 ` Stephen Hemminger
@ 2024-10-11 18:20 ` Morten Brørup
2024-10-11 19:07 ` Stephen Hemminger
2024-10-14 7:57 ` Bruce Richardson
0 siblings, 2 replies; 8+ messages in thread
From: Morten Brørup @ 2024-10-11 18:20 UTC (permalink / raw)
To: Stephen Hemminger
Cc: Ferruh Yigit, Robin Jarry, dev, Wathsala Vithanage, Min Zhou,
David Christensen, Stanislaw Kardach, bruce.richardson,
konstantin.v.ananyev, Vipin Varghese, thomas, Jerin Jacob
> From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> Sent: Friday, 11 October 2024 19.48
>
> On Fri, 11 Oct 2024 19:36:08 +0200
> Morten Brørup <mb@smartsharesystems.com> wrote:
>
> > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit
> > > Sent: Monday, 17 April 2017 16.36
> > >
> > > clang 4 gives "taking address of packed member may result in an
> > > unaligned pointer value" warnings in a few locations [1].
> > >
> > > Disabled "-Waddress-of-packed-member" warning for clang >= 4
> > >
> > > [1] build errors:
> > > .../lib/librte_eal/common/eal_common_memzone.c:275:25:
> > > error: taking address of packed member 'mlock' of class or
> structure
> > > 'rte_mem_config' may result in an unaligned pointer value
> > > [-Werror,-Waddress-of-packed-member]
> > > rte_rwlock_write_lock(&mcfg->mlock);
> > > ^~~~~~~~~~~
> > >
> > > .../lib/librte_ip_frag/rte_ipv4_reassembly.c:139:31:
> > > error: taking address of packed member 'src_addr' of class or
> structure
> > > 'ipv4_hdr' may result in an unaligned pointer value
> > > [-Werror,-Waddress-of-packed-member]
> > > psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
> > > ^~~~~~~~~~~~~~~~
> > >
> > > .../lib/librte_vhost/vhost_user.c:1037:34:
> > > error: taking address of packed member 'payload' of class or
> structure
> > > 'VhostUserMsg' may result in an unaligned pointer value
> > > [-Werror,-Waddress-of-packed-member]
> > > vhost_user_set_vring_num(dev, &msg.payload.state);
> > > ^~~~~~~~~~~~~~~~~
> > >
> > > Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> > > ---
> > > mk/toolchain/clang/rte.vars.mk | 5 +++++
> > > 1 file changed, 5 insertions(+)
> > >
> > > diff --git a/mk/toolchain/clang/rte.vars.mk
> > > b/mk/toolchain/clang/rte.vars.mk
> > > index 7749b99..af34c10 100644
> > > --- a/mk/toolchain/clang/rte.vars.mk
> > > +++ b/mk/toolchain/clang/rte.vars.mk
> > > @@ -79,5 +79,10 @@ include
> > > $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
> > > # workaround clang bug with warning "missing field initializer"
> for "=
> > > {0}"
> > > WERROR_FLAGS += -Wno-missing-field-initializers
> > >
> > > +# disable packed member unalign warnings
> > > +ifeq ($(shell test $(CLANG_MAJOR_VERSION) -ge 4 && echo 1), 1)
> > > +WERROR_FLAGS += -Wno-address-of-packed-member
> > > +endif
> > > +
> > > export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
> > > export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
> > > --
> > > 2.9.3
> > >
> >
> > Revisiting an old patch...
> >
> > Maybe the code causing the warnings should have been fixed instead of
> disabling the compiler warning?
> >
> > We would probably handle this differently today... I wonder how many
> warnings it spews out with the warning enabled?
> >
> > -Morten
> >
>
> With gcc-14 and re-enable packed-member and no-zero-length-bounds, lots
> and lots of warnings.
Thanks for testing this, Stephen.
It seems to confirm my suspicion...
Random sampling:
- The warning in lib/ip_frag/rte_ipv4_reassembly.c is caused by using a temporary variable instead of mempcy().
- The warning in drivers/bus/ifpga/ifpga_bus.c is caused by a struct being packed for no good reason.
It reminds me of compiling the kernel in the good old days... spewed out lots of new warnings when using a new compiler version.
This really should be fixed. Disabling compiler warnings because it requires too much work fixing the bugs is not a valid reason.
>
> The ones related to locks are particularly concerning. Since many cpu's
> can't do locked operation
> on unaligned fields.
It certainly does raise the level of concern!
> Mlx5 driver seems particularly bad.
More sampling - zooming in on the mlx5 driver - makes me wonder why struct mlx5_mr_share_cache is packed.
Perhaps most of these warnings - generally, not limited to the mlx5 driver - will go away if we review if the involved structures really need to be packed.
>
> 190/3024] Compiling C object
> drivers/libtmp_rte_bus_dpaa.a.p/bus_dpaa_base_qbman_qman.c.o
> ../drivers/bus/dpaa/base/qbman/qman.c: In function
> ‘qman_ern_poll_free’:
> ../drivers/bus/dpaa/base/qbman/qman.c:813:30: warning: taking address
> of packed member of ‘struct <anonymous>’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 813 | hw_fd_to_cpu(&swapped_msg.ern.fd);
> | ^~~~~~~~~~~~~~~~~~~
> ../drivers/bus/dpaa/base/qbman/qman.c:815:22: warning: taking address
> of packed member of ‘struct <anonymous>’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 815 | fd = &swapped_msg.ern.fd;
> | ^~~~~~~~~~~~~~~~~~~
> ../drivers/bus/dpaa/base/qbman/qman.c: In function
> ‘__poll_portal_slow’:
> ../drivers/bus/dpaa/base/qbman/qman.c:857:25: warning: taking address
> of packed member of ‘struct qm_mcr_querycongestion’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 857 | &mcr->querycongestion.state, &p-
> >cgrs[0]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/bus/dpaa/base/qbman/qman.c:884:30: warning: taking address
> of packed member of ‘struct <anonymous>’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 884 | hw_fd_to_cpu(&swapped_msg.ern.fd);
> | ^~~~~~~~~~~~~~~~~~~
> [287/3024] Compiling C object
> lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o
> ../lib/ip_frag/rte_ipv4_reassembly.c: In function
> ‘rte_ipv4_frag_reassemble_packet’:
> ../lib/ip_frag/rte_ipv4_reassembly.c:113:37: warning: taking address of
> packed member of ‘struct rte_ipv4_hdr’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 113 | psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
> | ^~~~~~~~~~~~~~~~~
> [323/3024] Compiling C object
> drivers/libtmp_rte_bus_ifpga.a.p/bus_ifpga_ifpga_bus.c.o
> ../drivers/bus/ifpga/ifpga_bus.c: In function
> ‘ifpga_probe_all_drivers’:
> ../drivers/bus/ifpga/ifpga_bus.c:318:31: warning: taking address of
> packed member of ‘struct rte_afu_device’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 318 | if (rte_dev_is_probed(&afu_dev->device)) {
> | ^~~~~~~~~~~~~~~~
> ../drivers/bus/ifpga/ifpga_bus.c: In function ‘ifpga_find_device’:
> ../drivers/bus/ifpga/ifpga_bus.c:455:25: warning: taking address of
> packed member of ‘struct rte_afu_device’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 455 | if (cmp(&afu_dev->device, data) == 0)
> | ^~~~~~~~~~~~~~~~
> ../drivers/bus/ifpga/ifpga_bus.c:456:32: warning: taking address of
> packed member of ‘struct rte_afu_device’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 456 | return &afu_dev->device;
> | ^~~~~~~~~~~~~~~~
> [413/3024] Compiling C object
> drivers/libtmp_rte_bus_vmbus.a.p/bus_vmbus_vmbus_bufring.c.o
> ../drivers/bus/vmbus/vmbus_bufring.c: In function ‘vmbus_txbr_write’:
> ../drivers/bus/vmbus/vmbus_bufring.c:161:37: warning: taking address of
> packed member of ‘struct vmbus_bufring’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 161 | while (!rte_atomic32_cmpset(&vbr->windex, old_windex,
> next_windex))
> | ^~~~~~~~~~~~
> [415/3024] Compiling C object
> drivers/libtmp_rte_bus_vmbus.a.p/bus_vmbus_vmbus_channel.c.o
> ../drivers/bus/vmbus/vmbus_channel.c: In function ‘vmbus_set_monitor’:
> ../drivers/bus/vmbus/vmbus_channel.c:37:24: warning: taking address of
> packed member of ‘struct vmbus_mon_trig’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 37 | monitor_addr = &channel->monitor_page-
> >trigs[trigger_index].pending;
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [421/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_mp.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common_log.h:8,
> from ../drivers/common/mlx5/mlx5_common_mp.c:13:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [422/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_pci.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common_log.h:8,
> from ../drivers/common/mlx5/mlx5_common_pci.c:15:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [423/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common.c:16:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common.c: In function
> ‘mlx5_dev_mempool_subscribe’:
> ../drivers/common/mlx5/mlx5_common.c:593:31: warning: taking address of
> packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 593 | rte_rwlock_write_lock(&cdev->mr_scache.mprwlock);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common.c:605:33: warning: taking address of
> packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 605 | rte_rwlock_write_unlock(&cdev->mr_scache.mprwlock);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common.c: In function
> ‘mlx5_common_dev_dma_map’:
> ../drivers/common/mlx5/mlx5_common.c:1110:31: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 1110 | rte_rwlock_write_lock(&dev->mr_scache.rwlock);
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common.c:1129:41: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 1129 | rte_rwlock_write_unlock(&dev-
> >mr_scache.rwlock);
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common.c:1142:33: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 1142 | rte_rwlock_write_unlock(&dev->mr_scache.rwlock);
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common.c: In function
> ‘mlx5_common_dev_dma_unmap’:
> ../drivers/common/mlx5/mlx5_common.c:1177:30: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 1177 | rte_rwlock_read_lock(&dev->mr_scache.rwlock);
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common.c:1180:40: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 1180 | rte_rwlock_read_unlock(&dev->mr_scache.rwlock);
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common.c:1199:32: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 1199 | rte_rwlock_read_unlock(&dev->mr_scache.rwlock);
> | ^~~~~~~~~~~~~~~~~~~~~~
> [424/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_malloc.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common_log.h:8,
> from ../drivers/common/mlx5/mlx5_malloc.c:11:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [425/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_linux_mlx5_common_auxili
> ary.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common_utils.h:11,
> from
> ../drivers/common/mlx5/linux/mlx5_common_auxiliary.c:15:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [426/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_devx.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common_log.h:8,
> from ../drivers/common/mlx5/mlx5_common_devx.c:15:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [428/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_utils.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common_utils.h:11,
> from ../drivers/common/mlx5/mlx5_common_utils.c:11:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [433/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_linux_mlx5_common_verbs.
> c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common_utils.h:11,
> from
> ../drivers/common/mlx5/linux/mlx5_common_verbs.c:16:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [434/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_linux_mlx5_common_os.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/linux/mlx5_common_os.c:21:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [435/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_common_mr.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common_mr.c:15:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_mr_garbage_collect’:
> ../drivers/common/mlx5/mlx5_common_mr.c:533:31: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 533 | rte_rwlock_write_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:537:33: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 537 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_mr_expand_cache’:
> ../drivers/common/mlx5/mlx5_common_mr.c:619:31: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 619 | rte_rwlock_write_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:627:33: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 627 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_mr_create_secondary’:
> ../drivers/common/mlx5/mlx5_common_mr.c:666:30: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 666 | rte_rwlock_read_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:671:32: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 671 | rte_rwlock_read_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_mr_create_primary’:
> ../drivers/common/mlx5/mlx5_common_mr.c:824:31: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 824 | rte_rwlock_write_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:838:41: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 838 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:895:41: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 895 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:933:33: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 933 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:937:33: warning: taking address
> of packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 937 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mr_lookup_caches’:
> ../drivers/common/mlx5/mlx5_common_mr.c:1021:30: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1021 | rte_rwlock_read_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1026:40: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1026 | rte_rwlock_read_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1035:32: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1035 | rte_rwlock_read_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_mr_release_cache’:
> ../drivers/common/mlx5/mlx5_common_mr.c:1104:31: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1104 | rte_rwlock_write_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1117:33: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1117 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_mr_create_cache’:
> ../drivers/common/mlx5/mlx5_common_mr.c:1137:31: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1137 | mlx5_os_set_reg_mr_cb(&share_cache->reg_mr_cb,
> | ^~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1138:31: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1138 | &share_cache->dereg_mr_cb);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1139:25: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1139 | rte_rwlock_init(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1140:25: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1140 | rte_rwlock_init(&share_cache->mprwlock);
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_free_mr_by_addr’:
> ../drivers/common/mlx5/mlx5_common_mr.c:1255:31: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1255 | rte_rwlock_write_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1303:33: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1303 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_mr_mempool_register_primary’:
> ../drivers/common/mlx5/mlx5_common_mr.c:1685:30: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1685 | rte_rwlock_read_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1687:32: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1687 | rte_rwlock_read_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1713:39: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1713 | rte_rwlock_write_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1724:41: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1724 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1758:31: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1758 | rte_rwlock_write_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1771:33: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1771 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_mr_mempool_unregister_primary’:
> ../drivers/common/mlx5/mlx5_common_mr.c:1831:31: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1831 | rte_rwlock_write_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1844:33: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1844 | rte_rwlock_write_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_lookup_mempool_regs’:
> ../drivers/common/mlx5/mlx5_common_mr.c:1955:30: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1955 | rte_rwlock_read_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1959:32: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1959 | rte_rwlock_read_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c: In function
> ‘mlx5_mr_mempool_populate_cache’:
> ../drivers/common/mlx5/mlx5_common_mr.c:1997:30: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1997 | rte_rwlock_read_lock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/common/mlx5/mlx5_common_mr.c:1999:32: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 1999 | rte_rwlock_read_unlock(&share_cache->rwlock);
> | ^~~~~~~~~~~~~~~~~~~~
> [436/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_linux_mlx5_nl.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/linux/mlx5_nl.h:13,
> from ../drivers/common/mlx5/linux/mlx5_nl.c:22:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [447/3024] Compiling C object
> drivers/libtmp_rte_common_mlx5.a.p/common_mlx5_mlx5_devx_cmds.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/common/mlx5/mlx5_common_log.h:8,
> from ../drivers/common/mlx5/mlx5_devx_cmds.c:13:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [515/3024] Compiling C object
> drivers/libtmp_rte_net_ipn3ke.a.p/net_ipn3ke_ipn3ke_ethdev.c.o
> ../drivers/net/ipn3ke/ipn3ke_ethdev.c: In function
> ‘ipn3ke_vswitch_probe’:
> ../drivers/net/ipn3ke/ipn3ke_ethdev.c:491:35: warning: taking address
> of packed member of ‘struct rte_afu_device’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 491 | rte_spinlock_init(&afu_dev->shared.lock);
> | ^~~~~~~~~~~~~~~~~~~~~
> ../drivers/net/ipn3ke/ipn3ke_ethdev.c:533:45: warning: taking address
> of packed member of ‘struct rte_afu_device’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 533 | retval = rte_eth_dev_create(&afu_dev->device,
> name,
> | ^~~~~~~~~~~~~~~~
> [653/3024] Compiling C object
> drivers/libtmp_rte_net_atlantic.a.p/net_atlantic_hw_atl_hw_atl_utils.c.
> o
> ../drivers/net/atlantic/hw_atl/hw_atl_utils.c: In function
> ‘aq_fw1x_set_wol’:
> ../drivers/net/atlantic/hw_atl/hw_atl_utils.c:872:50: warning: taking
> address of packed member of ‘struct hw_aq_atl_utils_fw_rpc’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 872 | (struct rte_ether_addr *)&prpc-
> >msg_wol.wol_pattern);
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> [683/3024] Compiling C object
> drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_hwrm.c.o
> ../drivers/net/bnxt/bnxt_hwrm.c: In function
> ‘bnxt_hwrm_func_backing_store_qcaps_v2’:
> ../drivers/net/bnxt/bnxt_hwrm.c:6363:33: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_qcaps_v2_output’ may
> result in an unaligned pointer value [-Waddress-of-packed-member]
> 6363 | for (i = 0, p = &resp->split_entry_0; i < ctxm-
> >split_entry_cnt;
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c: In function
> ‘bnxt_hwrm_func_backing_store_cfg_v2’:
> ../drivers/net/bnxt/bnxt_hwrm.c:6577:33: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_v2_input’ may
> result in an unaligned pointer value [-Waddress-of-packed-member]
> 6577 | for (k = 0, p = &req.split_entry_0; k < ctxm-
> >split_entry_cnt; k++)
> | ^~~~~~~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c:6588:39: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_v2_input’ may
> result in an unaligned pointer value [-Waddress-of-packed-member]
> 6588 | &req.page_dir);
> | ^~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c: In function
> ‘bnxt_hwrm_func_backing_store_cfg’:
> ../drivers/net/bnxt/bnxt_hwrm.c:6633:39: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6633 | &req.qpc_page_dir);
> | ^~~~~~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c:6644:39: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6644 | &req.srq_page_dir);
> | ^~~~~~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c:6655:39: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6655 | &req.cq_page_dir);
> | ^~~~~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c:6667:39: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6667 | &req.vnic_page_dir);
> | ^~~~~~~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c:6676:39: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6676 | &req.stat_page_dir);
> | ^~~~~~~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c:6680:23: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6680 | num_entries = &req.tqm_sp_num_entries;
> | ^~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c:6682:18: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6682 | pg_dir = &req.tqm_sp_page_dir;
> | ^~~~~~~~~~~~~~~~~~~~
> ../drivers/net/bnxt/bnxt_hwrm.c:6704:39: warning: taking address of
> packed member of ‘struct hwrm_func_backing_store_cfg_input’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6704 | &req.tqm_ring8_page_dir);
> | ^~~~~~~~~~~~~~~~~~~~~~~
> [749/3024] Compiling C object
> drivers/libtmp_rte_net_iavf.a.p/net_iavf_iavf_vchnl.c.o
> ../drivers/net/iavf/iavf_vchnl.c: In function
> ‘iavf_handle_virtchnl_msg’:
> ../drivers/net/iavf/iavf_vchnl.c:556:73: warning: taking address of
> packed member of ‘struct inline_ipsec_msg’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 556 |
> imsg->ipsec_data.event;
> |
> ^~~~
> [785/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_ethdev.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_rxtx.h:21,
> from ../drivers/net/mlx5/mlx5_ethdev.c:25:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_ethdev.c:26:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_ethdev.c:27:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [788/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_mac.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_mac.c:17:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [789/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5.c:30:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5.c:39:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5.c:40:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5.c:43:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h: In function
> ‘mlx5_flow_os_create_flow_action_modify_header’:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking
> address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’
> may result in an unaligned pointer value [-Waddress-of-packed-member]
> 231 | actions_len, (uint64_t
> *)res->actions);
> |
> ^~~
> [790/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rss.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_rss.c:17:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_rss.c:19:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [791/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_flex.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow_flex.c:7:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_flow_flex.c:8:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [792/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_meter.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow_meter.c:15:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_flow_meter.c:16:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [794/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rxmode.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_rxmode.c:13:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [795/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_aso.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow_aso.c:13:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_flow_aso.c:14:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow_aso.c:15:
> ../drivers/net/mlx5/mlx5_hws_cnt.h: In function ‘mlx5_hws_age_cnt_get’:
> ../drivers/net/mlx5/mlx5_hws_cnt.h:672:45: warning: taking address of
> packed member of ‘struct mlx5_hws_age_param’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 672 | ¶m-
> >own_cnt_index, age_idx) < 0)
> |
> ^~~~~~~~~~~~~~~~~~~~~
> [797/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_stats.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_stats.c:15:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_stats.c:19:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_stats.c:20:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [798/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rxtx.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_rxtx.c:20:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_rxtx.c:27:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_rxtx.c:28:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [799/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_trigger.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_trigger.c:16:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_trigger.c:17:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_trigger.c:18:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [800/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rxq.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_rxq.c:24:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_rxq.c:29:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rxq.c: In function ‘mlx5_rxq_new’:
> ../drivers/net/mlx5/mlx5_rxq.c:1839:31: warning: taking address of
> packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 1839 | &priv->sh->cdev-
> >mr_scache.dev_gen, socket)) {
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [801/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_tx.c:20:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_tx.c:27:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [802/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rx.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_rx.c:20:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_rx.c:30:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [803/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.c:28:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_flow.c:29:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.c:30:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h: In function
> ‘mlx5_flow_os_create_flow_action_modify_header’:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking
> address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’
> may result in an unaligned pointer value [-Waddress-of-packed-member]
> 231 | actions_len, (uint64_t
> *)res->actions);
> |
> ^~~
> In file included from ../drivers/net/mlx5/mlx5_flow.c:31:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [804/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_txq.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_txq.c:20:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_txq.c:27:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> ../drivers/net/mlx5/mlx5_txq.c: In function ‘mlx5_txq_new’:
> ../drivers/net/mlx5/mlx5_txq.c:1085:31: warning: taking address of
> packed member of ‘struct mlx5_mr_share_cache’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 1085 | &priv->sh->cdev-
> >mr_scache.dev_gen, socket)) {
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [805/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_vlan.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_vlan.c:16:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_vlan.c:19:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [806/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_txpp.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_txpp.c:18:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_txpp.c:19:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_txpp.c:20:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> ../drivers/net/mlx5/mlx5_txpp.c: In function
> ‘mlx5_txpp_fill_wqe_rearm_queue’:
> ../drivers/net/mlx5/mlx5_txpp.c:191:22: warning: taking address of
> packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 191 | cs = &wqe[i + 0].cseg;
> | ^~~~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_txpp.c:204:22: warning: taking address of
> packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 204 | cs = &wqe[i + 1].cseg;
> | ^~~~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_txpp.c: In function
> ‘mlx5_txpp_fill_wqe_clock_queue’:
> ../drivers/net/mlx5/mlx5_txpp.c:289:36: warning: taking address of
> packed member of ‘struct mlx5_wqe’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 289 | struct mlx5_wqe_cseg *cs = &wqe->cseg;
> | ^~~~~~~~~~
> [807/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_nta_rss.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_nta_rss.c:8:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_nta_rss.c:10:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_nta_rss.c:11:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [808/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_devx.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_devx.c:21:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_devx.c:23:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_devx.c:24:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_devx.c:28:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h: In function
> ‘mlx5_flow_os_create_flow_action_modify_header’:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking
> address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’
> may result in an unaligned pointer value [-Waddress-of-packed-member]
> 231 | actions_len, (uint64_t
> *)res->actions);
> |
> ^~~
> [809/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_utils.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_utils.h:20,
> from ../drivers/net/mlx5/mlx5_utils.c:9:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [810/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_geneve.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow_geneve.c:11:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_flow_geneve.c:12:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [811/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_quota.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_utils.h:20,
> from ../drivers/net/mlx5/mlx5_flow_quota.c:8:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_flow_quota.c:9:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [812/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_mpw.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_tx.h:18,
> from ../drivers/net/mlx5/mlx5_tx_mpw.c:6:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [813/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_verbs.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow_verbs.c:24:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_flow_verbs.c:25:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow_verbs.c:26:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow_verbs.c:27:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h: In function
> ‘mlx5_flow_os_create_flow_action_modify_header’:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking
> address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’
> may result in an unaligned pointer value [-Waddress-of-packed-member]
> 231 | actions_len, (uint64_t
> *)res->actions);
> |
> ^~~
> ../drivers/net/mlx5/mlx5_flow_verbs.c: In function ‘flow_verbs_remove’:
> ../drivers/net/mlx5/mlx5_flow_verbs.c:2016:53: warning: taking address
> of packed member of ‘struct mlx5_flow_handle’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 2016 | mlx5_vlan_vmwa_release(dev, &handle-
> >vf_vlan);
> |
> ^~~~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_verbs.c: In function ‘flow_verbs_apply’:
> ../drivers/net/mlx5/mlx5_flow_verbs.c:2124:53: warning: taking address
> of packed member of ‘struct mlx5_flow_handle’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 2124 | mlx5_vlan_vmwa_acquire(dev, &handle-
> >vf_vlan);
> |
> ^~~~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_verbs.c:2139:53: warning: taking address
> of packed member of ‘struct mlx5_flow_handle’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 2139 | mlx5_vlan_vmwa_release(dev, &handle-
> >vf_vlan);
> |
> ^~~~~~~~~~~~~~~~
> [814/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_socket.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_utils.h:20,
> from ../drivers/net/mlx5/linux/mlx5_socket.c:18:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [815/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rxtx_vec.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_rxtx_vec.c:19:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_rxtx_vec.c:22:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [816/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_os.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/linux/mlx5_os.c:35:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/linux/mlx5_os.c:45:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/linux/mlx5_os.c:46:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [817/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_hws_cnt.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_utils.h:20,
> from ../drivers/net/mlx5/mlx5_hws_cnt.c:16:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_hws_cnt.h:10,
> from ../drivers/net/mlx5/mlx5_hws_cnt.c:17:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> ../drivers/net/mlx5/mlx5_hws_cnt.h: In function ‘mlx5_hws_age_cnt_get’:
> ../drivers/net/mlx5/mlx5_hws_cnt.h:672:45: warning: taking address of
> packed member of ‘struct mlx5_hws_age_param’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 672 | ¶m-
> >own_cnt_index, age_idx) < 0)
> |
> ^~~~~~~~~~~~~~~~~~~~~
> [818/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_ethdev_os.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/linux/mlx5_ethdev_os.c:41:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [819/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_verbs.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/linux/mlx5_verbs.c:22:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/linux/mlx5_verbs.c:25:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/linux/mlx5_verbs.c:26:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [820/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_mp_os.c.o
> In file included from ../drivers/net/mlx5/linux/mlx5_mp_os.c:14:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/linux/mlx5_mp_os.c:19:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/linux/mlx5_mp_os.c:20:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [821/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_vlan_os.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/linux/mlx5_vlan_os.c:22:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [822/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_linux_mlx5_flow_os.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/linux/mlx5_flow_os.h:8,
> from ../drivers/net/mlx5/linux/mlx5_flow_os.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> ../drivers/net/mlx5/linux/mlx5_flow_os.h: In function
> ‘mlx5_flow_os_create_flow_action_modify_header’:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking
> address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’
> may result in an unaligned pointer value [-Waddress-of-packed-member]
> 231 | actions_len, (uint64_t
> *)res->actions);
> |
> ^~~
> [823/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_dv.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow_dv.c:35:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_flow_dv.c:37:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow_dv.c:38:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h: In function
> ‘mlx5_flow_os_create_flow_action_modify_header’:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking
> address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’
> may result in an unaligned pointer value [-Waddress-of-packed-member]
> 231 | actions_len, (uint64_t
> *)res->actions);
> |
> ^~~
> In file included from ../drivers/net/mlx5/mlx5_flow_dv.c:39:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function
> ‘flow_dv_convert_modify_action’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:414:49: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 414 | struct mlx5_modification_cmd *actions = resource-
> >actions;
> | ^~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function
> ‘flow_dv_convert_action_modify_vlan_vid’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:677:49: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 677 | struct mlx5_modification_cmd *actions = resource-
> >actions;
> | ^~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function
> ‘flow_dv_convert_action_set_reg’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:1030:49: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 1030 | struct mlx5_modification_cmd *actions = resource-
> >actions;
> | ^~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function
> ‘flow_modify_create_cb’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:6270:43: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6270 | .data = (__be64 *)ref->actions
> | ^~~
> ../drivers/net/mlx5/mlx5_flow_dv.c:6289:59: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6289 | data_len,
> &entry->action);
> |
> ^~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c:6299:16: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6299 | return &entry->entry;
> | ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_modify_clone_cb’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:6323:16: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 6323 | return &entry->entry;
> | ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function
> ‘flow_dv_modify_hdr_resource_register’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:6664:17: warning: taking address of
> packed member of ‘struct mlx5_flow_handle_dv’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 6664 | &dev_flow->handle->dvh.modify_hdr, error);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_apply’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:15952:61: warning: taking address of
> packed member of ‘struct mlx5_flow_handle’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 15952 | dv->actions,
> &dh->drv_flow);
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c:15972:53: warning: taking address of
> packed member of ‘struct mlx5_flow_handle’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 15972 | mlx5_vlan_vmwa_acquire(dev, &dh-
> >vf_vlan);
> |
> ^~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c:15989:53: warning: taking address of
> packed member of ‘struct mlx5_flow_handle’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 15989 | mlx5_vlan_vmwa_release(dev, &dh-
> >vf_vlan);
> |
> ^~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function
> ‘flow_dv_modify_hdr_resource_release’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:16142:61: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 16142 | return mlx5_hlist_unregister(priv->sh->modify_cmds,
> &entry->entry);
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function ‘flow_dv_remove’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:16423:53: warning: taking address of
> packed member of ‘struct mlx5_flow_handle’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 16423 | mlx5_vlan_vmwa_release(dev, &dh-
> >vf_vlan);
> |
> ^~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_dv.c: In function
> ‘flow_dv_discover_priorities’:
> ../drivers/net/mlx5/mlx5_flow_dv.c:20410:51: warning: taking address of
> packed member of ‘struct mlx5_flow_handle’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 20410 | flow.dv.actions, &flow.handle-
> >drv_flow);
> |
> ^~~~~~~~~~~~~~~~~~~~~~
> [824/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_context.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_context.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [825/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_table.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_table.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [826/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_buddy.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_buddy.c:7:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [827/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_matcher.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_matcher.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [828/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_rule.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_rule.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [829/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_pool.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_pool.c:8:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [830/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_send.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_send.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [831/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_cmd.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_cmd.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [832/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_pat_arg.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_pat_arg.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [834/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_debug.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_debug.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [835/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_action.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_action.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [837/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_crc32.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_crc32.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [838/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_bwc.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_bwc.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [846/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_hws_mlx5dr_definer.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow.h:19,
> from ../drivers/net/mlx5/hws/mlx5dr_internal.h:25,
> from ../drivers/net/mlx5/hws/mlx5dr_definer.c:5:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [849/3024] Compiling C object
> drivers/libtmp_rte_raw_ifpga.a.p/raw_ifpga_ifpga_rawdev.c.o
> ../drivers/raw/ifpga/ifpga_rawdev.c: In function ‘ifpga_fill_afu_dev’:
> ../drivers/raw/ifpga/ifpga_rawdev.c:597:40: warning: taking address of
> packed member of ‘struct rte_afu_device’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 597 | struct rte_mem_resource *res = afu_dev->mem_resource;
> | ^~~~~~~
> [850/3024] Compiling C object
> drivers/libtmp_rte_raw_ifpga.a.p/raw_ifpga_afu_pmd_core.c.o
> ../drivers/raw/ifpga/afu_pmd_core.c: In function ‘afu_rawdev_create’:
> ../drivers/raw/ifpga/afu_pmd_core.c:312:26: warning: taking address of
> packed member of ‘struct rte_afu_device’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 312 | rawdev->device = &afu_dev->device;
> | ^~~~~~~~~~~~~~~~
> [891/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_txpp.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_tx.h:18,
> from ../drivers/net/mlx5/mlx5_tx_txpp.c:6:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [892/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_empw.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_tx.h:18,
> from ../drivers/net/mlx5/mlx5_tx_empw.c:6:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [894/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o
> In file included from ../drivers/net/mlx5/mlx5.h:28,
> from ../drivers/net/mlx5/mlx5_flow_hw.c:11:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow.h:22,
> from ../drivers/net/mlx5/mlx5_flow_hw.c:14:
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow_hw.c:15:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h: In function
> ‘mlx5_flow_os_create_flow_action_modify_header’:
> ../drivers/net/mlx5/linux/mlx5_flow_os.h:231:67: warning: taking
> address of packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’
> may result in an unaligned pointer value [-Waddress-of-packed-member]
> 231 | actions_len, (uint64_t
> *)res->actions);
> |
> ^~~
> In file included from ../drivers/net/mlx5/mlx5_flow_hw.c:16:
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_addr2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:337:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 337 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_rx.h: In function ‘mlx5_rx_mb2mr’:
> ../drivers/net/mlx5/mlx5_rx.h:366:52: warning: taking address of packed
> member of ‘struct mlx5_mr_ctrl’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 366 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> In file included from ../drivers/net/mlx5/mlx5_flow_hw.c:19:
> ../drivers/net/mlx5/mlx5_hws_cnt.h: In function ‘mlx5_hws_age_cnt_get’:
> ../drivers/net/mlx5/mlx5_hws_cnt.h:672:45: warning: taking address of
> packed member of ‘struct mlx5_hws_age_param’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 672 | ¶m-
> >own_cnt_index, age_idx) < 0)
> |
> ^~~~~~~~~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_hw.c: In function
> ‘flow_hw_converted_mhdr_cmds_append’:
> ../drivers/net/mlx5/mlx5_flow_hw.c:1495:53: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 1495 | struct mlx5_modification_cmd *src = &resource-
> >actions[idx];
> |
> ^~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_hw.c: In function
> ‘flow_hw_modify_field_compile’:
> ../drivers/net/mlx5/mlx5_flow_hw.c:1620:45: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 1620 | if (flow_hw_should_insert_nop(mhdr, &resource-
> >actions[0])) {
> |
> ^~~~~~~~~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_hw.c: In function
> ‘flow_hw_shared_action_construct’:
> ../drivers/net/mlx5/mlx5_flow_hw.c:3205:51: warning: taking address of
> packed member of ‘struct mlx5_hws_age_param’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 3205 | ¶m-
> >queue_id, &age_cnt,
> |
> ^~~~~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_flow_hw.c: In function ‘flow_hw_destroy’:
> ../drivers/net/mlx5/mlx5_flow_hw.c:13809:25: warning: taking address of
> packed member of ‘struct mlx5_flow_dv_modify_hdr_resource’ may result
> in an unaligned pointer value [-Waddress-of-packed-member]
> 13809 | &flow->nt2hws->modify_hdr->entry);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [896/3024] Compiling C object
> drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_nompw.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/net/mlx5/mlx5_tx.h:18,
> from ../drivers/net/mlx5/mlx5_tx_nompw.c:6:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx5/mlx5_tx.h: In function ‘mlx5_tx_cseg_init’:
> ../drivers/net/mlx5/mlx5_tx.h:811:51: warning: taking address of packed
> member of ‘struct mlx5_wqe’ may result in an unaligned pointer value [-
> Waddress-of-packed-member]
> 811 | struct mlx5_wqe_cseg *__rte_restrict cs = &wqe->cseg;
> | ^~~~~~~~~~
> [948/3024] Compiling C object lib/librte_vhost.a.p/vhost_vhost_user.c.o
> ../lib/vhost/vhost_user.c: In function ‘vhost_user_set_vring_addr’:
> ../lib/vhost/vhost_user.c:980:41: warning: taking address of packed
> member of ‘struct VhostUserMsg’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 980 | struct vhost_vring_addr *addr = &ctx->msg.payload.addr;
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../lib/vhost/vhost_user.c: In function ‘vhost_user_postcopy_register’:
> ../lib/vhost/vhost_user.c:1248:18: warning: taking address of packed
> member of ‘struct VhostUserMsg’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 1248 | memory = &ctx->msg.payload.memory;
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> ../lib/vhost/vhost_user.c: In function ‘vhost_user_set_mem_table’:
> ../lib/vhost/vhost_user.c:1390:42: warning: taking address of packed
> member of ‘struct VhostUserMsg’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 1390 | struct VhostUserMemory *memory = &ctx-
> >msg.payload.memory;
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~
> ../lib/vhost/vhost_user.c: In function ‘vhost_user_iotlb_msg’:
> ../lib/vhost/vhost_user.c:2707:40: warning: taking address of packed
> member of ‘struct VhostUserMsg’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 2707 | struct vhost_iotlb_msg *imsg = &ctx->msg.payload.iotlb;
> | ^~~~~~~~~~~~~~~~~~~~~~~
> ../lib/vhost/vhost_user.c: In function ‘read_vhost_message’:
> ../lib/vhost/vhost_user.c:2919:20: warning: taking address of packed
> member of ‘struct vhu_msg_context’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 2919 | ctx->fds, VHOST_MEMORY_MAX_NREGIONS, &ctx-
> >fd_num);
> | ~~~^~~~~
> ../lib/vhost/vhost_user.c:2919:54: warning: taking address of packed
> member of ‘struct vhu_msg_context’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 2919 | ctx->fds, VHOST_MEMORY_MAX_NREGIONS, &ctx-
> >fd_num);
> |
> ^~~~~~~~~~~~
> ../lib/vhost/vhost_user.c: In function ‘send_vhost_message’:
> ../lib/vhost/vhost_user.c:2960:57: warning: taking address of packed
> member of ‘struct vhu_msg_context’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 2960 | VHOST_USER_HDR_SIZE + ctx->msg.size, ctx->fds,
> ctx->fd_num);
> | ~~~^~~~~
> [991/3024] Compiling C object
> lib/librte_vhost.a.p/vhost_vhost_crypto.c.o
> ../lib/vhost/vhost_crypto.c: In function
> ‘vhost_crypto_msg_post_handler’:
> ../lib/vhost/vhost_crypto.c:458:33: warning: taking address of packed
> member of ‘struct VhostUserMsg’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 458 | &ctx-
> >msg.payload.crypto_session);
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [1088/3024] Compiling C object
> lib/librte_pipeline.a.p/pipeline_rte_table_action.c.o
> ../lib/pipeline/rte_table_action.c: In function ‘mtr_apply’:
> ../lib/pipeline/rte_table_action.c:278:49: warning: taking address of
> packed member of ‘struct mtr_trtcm_data’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 278 | status = rte_meter_trtcm_config(&data_tc-
> >trtcm,
> | ^~~~~~~~~~~~~~~
> ../lib/pipeline/rte_table_action.c: In function ‘pkt_work_mtr’:
> ../lib/pipeline/rte_table_action.c:325:17: warning: taking address of
> packed member of ‘struct mtr_trtcm_data’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 325 | &data->trtcm,
> | ^~~~~~~~~~~~
> [1093/3024] Compiling C object
> drivers/libtmp_rte_dma_ioat.a.p/dma_ioat_ioat_dmadev.c.o
> ../drivers/dma/ioat/ioat_dmadev.c: In function ‘ioat_dmadev_create’:
> ../drivers/dma/ioat/ioat_dmadev.c:648:26: warning: taking address of
> packed member of ‘struct ioat_registers’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 648 | ioat->doorbell = &ioat->regs->dmacount;
> | ^~~~~~~~~~~~~~~~~~~~~
> [1102/3024] Compiling C object
> drivers/libtmp_rte_net_ark.a.p/net_ark_ark_ethdev_rx.c.o
> ../drivers/net/ark/ark_ethdev_rx.c: In function ‘eth_ark_recv_pkts’:
> ../drivers/net/ark/ark_ethdev_rx.c:332:45: warning: taking address of
> packed member of ‘struct ark_rx_meta’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 332 | rx_user_meta_hook(mbuf, meta->user_meta, queue-
> >ext_user_data);
> | ~~~~^~~~~~~~~~~
> [1183/3024] Compiling C object
> drivers/libtmp_rte_net_enic.a.p/net_enic_enic_fm_flow.c.o
> ../drivers/net/enic/enic_fm_flow.c: In function
> ‘enic_fm_copy_item_vlan’:
> ../drivers/net/enic/enic_fm_flow.c:461:28: warning: taking address of
> packed member of ‘union <anonymous>’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 461 | eth_mask = (void *)&fm_mask->l2.eth;
> | ^~~~~~~~~~~~~~~~
> ../drivers/net/enic/enic_fm_flow.c:462:27: warning: taking address of
> packed member of ‘union <anonymous>’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 462 | eth_val = (void *)&fm_data->l2.eth;
> | ^~~~~~~~~~~~~~~~
> [1246/3024] Compiling C object
> drivers/libtmp_rte_net_ionic.a.p/net_ionic_ionic_ethdev.c.o
> ../drivers/net/ionic/ionic_ethdev.c: In function ‘ionic_dev_info_get’:
> ../drivers/net/ionic/ionic_ethdev.c:405:39: warning: taking address of
> packed member of ‘struct <anonymous>’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 405 | union ionic_lif_config *cfg = &ident->lif.eth.config;
> | ^~~~~~~~~~~~~~~~~~~~~~
> [1249/3024] Compiling C object
> drivers/libtmp_rte_net_ionic.a.p/net_ionic_ionic_lif.c.o
> ../drivers/net/ionic/ionic_lif.c: In function ‘ionic_lif_configure’:
> ../drivers/net/ionic/ionic_lif.c:1921:39: warning: taking address of
> packed member of ‘struct <anonymous>’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 1921 | union ionic_lif_config *cfg = &ident->lif.eth.config;
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/net/ionic/ionic_lif.c: In function ‘ionic_lif_identify’:
> ../drivers/net/ionic/ionic_lif.c:2094:39: warning: taking address of
> packed member of ‘struct <anonymous>’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 2094 | union ionic_lif_config *cfg = &ident->lif.eth.config;
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/net/ionic/ionic_lif.c: In function ‘ionic_lifs_size’:
> ../drivers/net/ionic/ionic_lif.c:2136:39: warning: taking address of
> packed member of ‘struct <anonymous>’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 2136 | union ionic_lif_config *cfg = &ident->lif.eth.config;
> | ^~~~~~~~~~~~~~~~~~~~~~
> [1260/3024] Compiling C object
> drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4.c.o
> In file included from ../drivers/net/mlx4/mlx4.c:49:
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1261/3024] Compiling C object
> drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_intr.c.o
> In file included from ../drivers/net/mlx4/mlx4_intr.c:32:
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1263/3024] Compiling C object
> drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_mp.c.o
> In file included from ../drivers/net/mlx4/mlx4_mp.c:16:
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1265/3024] Compiling C object
> drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_flow.c.o
> In file included from ../drivers/net/mlx4/mlx4_flow.c:40:
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_flow.c: In function ‘mlx4_flow_internal’:
> ../drivers/net/mlx4/mlx4_flow.c:1364:17: warning: taking address of
> packed member of ‘struct rte_vlan_hdr’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 1364 | &vlan_spec.hdr.vlan_tci :
> | ^~~~~~~~~~~~~~~~~~~~~~~
> [1267/3024] Compiling C object
> drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_ethdev.c.o
> In file included from ../drivers/net/mlx4/mlx4_ethdev.c:46:
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1268/3024] Compiling C object
> drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_mr.c.o
> In file included from ../drivers/net/mlx4/mlx4_mr.c:37:
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1270/3024] Compiling C object
> drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_txq.c.o
> In file included from ../drivers/net/mlx4/mlx4_txq.c:38:
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1271/3024] Compiling C object
> drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_rxq.c.o
> In file included from ../drivers/net/mlx4/mlx4_rxq.c:38:
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1275/3024] Compiling C object
> drivers/libtmp_rte_net_mlx4.a.p/net_mlx4_mlx4_rxtx.c.o
> In file included from ../drivers/net/mlx4/mlx4_rxtx.c:33:
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_rx_addr2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:208:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 208 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/net/mlx4/mlx4_rxtx.h: In function ‘mlx4_tx_mb2mr’:
> ../drivers/net/mlx4/mlx4_rxtx.h:240:53: warning: taking address of
> packed member of ‘struct mlx4_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 240 | lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1422/3024] Compiling C object
> drivers/libtmp_rte_net_tap.a.p/net_tap_rte_eth_tap.c.o
> ../drivers/net/tap/rte_eth_tap.c: In function ‘tap_write_mbufs’:
> ../drivers/net/tap/rte_eth_tap.c:619:44: warning: taking address of
> packed member of ‘struct rte_udp_hdr’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 619 | l4_cksum = &udp_hdr-
> >dgram_cksum;
> |
> ^~~~~~~~~~~~~~~~~~~~~
> ../drivers/net/tap/rte_eth_tap.c:625:44: warning: taking address of
> packed member of ‘struct rte_tcp_hdr’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 625 | l4_cksum = &tcp_hdr->cksum;
> | ^~~~~~~~~~~~~~~
> [1444/3024] Compiling C object
> drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_user_vhost_user.c.o
> ../drivers/net/virtio/virtio_user/vhost_user.c: In function
> ‘vhost_user_set_memory_table’:
> ../drivers/net/virtio/virtio_user/vhost_user.c:474:17: warning: taking
> address of packed member of ‘struct vhost_user_msg’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 474 | wa.vm = &msg.payload.memory;
> | ^~~~~~~~~~~~~~~~~~~
> [1485/3024] Compiling C object
> drivers/libtmp_rte_crypto_ionic.a.p/crypto_ionic_ionic_crypto_cmds.c.o
> ../drivers/crypto/ionic/ionic_crypto_cmds.c: In function
> ‘iocpt_dev_identify’:
> ../drivers/crypto/ionic/ionic_crypto_cmds.c:346:39: warning: taking
> address of packed member of ‘struct <anonymous>’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 346 | union iocpt_lif_config *cfg = &ident->config;
> | ^~~~~~~~~~~~~~
> [1494/3024] Compiling C object
> drivers/libtmp_rte_crypto_mlx5.a.p/crypto_mlx5_mlx5_crypto.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/crypto/mlx5/mlx5_crypto.c:14:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1496/3024] Compiling C object
> drivers/libtmp_rte_crypto_mlx5.a.p/crypto_mlx5_mlx5_crypto_xts.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/crypto/mlx5/mlx5_crypto_xts.c:14:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/crypto/mlx5/mlx5_crypto_xts.c: In function
> ‘mlx5_crypto_xts_wqe_set’:
> ../drivers/crypto/mlx5/mlx5_crypto_xts.c:262:38: warning: taking
> address of packed member of ‘struct mlx5_umr_wqe’ may result in an
> unaligned pointer value [-Waddress-of-packed-member]
> 262 | struct mlx5_wqe_cseg *cseg = &umr->ctr;
> | ^~~~~~~~~
> ../drivers/crypto/mlx5/mlx5_crypto_xts.c: In function
> ‘mlx5_crypto_xts_queue_pair_setup’:
> ../drivers/crypto/mlx5/mlx5_crypto_xts.c:517:45: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 517 | if (mlx5_mr_ctrl_init(&qp->mr_ctrl, &priv->cdev-
> >mr_scache.dev_gen,
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [1499/3024] Compiling C object
> drivers/libtmp_rte_crypto_mlx5.a.p/crypto_mlx5_mlx5_crypto_dek.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/crypto/mlx5/mlx5_crypto_utils.h:8,
> from ../drivers/crypto/mlx5/mlx5_crypto_dek.c:13:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1507/3024] Compiling C object
> drivers/libtmp_rte_crypto_caam_jr.a.p/crypto_caam_jr_caam_jr.c.o
> ../drivers/crypto/caam_jr/caam_jr.c: In function ‘hw_poll_job_ring’:
> ../drivers/crypto/caam_jr/caam_jr.c:584:29: warning: taking address of
> packed member of ‘struct sec_outring_entry’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 584 | temp_addr = &(job_ring->output_ring[job_ring-
> >cidx].desc);
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [1508/3024] Compiling C object
> drivers/libtmp_rte_crypto_mlx5.a.p/crypto_mlx5_mlx5_crypto_gcm.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/crypto/mlx5/mlx5_crypto_gcm.c:15:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/crypto/mlx5/mlx5_crypto_gcm.c: In function
> ‘mlx5_crypto_gcm_qp_setup’:
> ../drivers/crypto/mlx5/mlx5_crypto_gcm.c:345:45: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 345 | if (mlx5_mr_ctrl_init(&qp->mr_ctrl, &priv->cdev-
> >mr_scache.dev_gen,
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [1520/3024] Compiling C object
> drivers/libtmp_rte_compress_mlx5.a.p/compress_mlx5_mlx5_compress.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/compress/mlx5/mlx5_compress.c:15:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/compress/mlx5/mlx5_compress.c: In function
> ‘mlx5_compress_qp_setup’:
> ../drivers/compress/mlx5/mlx5_compress.c:181:45: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 181 | if (mlx5_mr_ctrl_init(&qp->mr_ctrl, &priv->cdev-
> >mr_scache.dev_gen,
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [1522/3024] Compiling C object
> drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_regex_devx.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/regex/mlx5/mlx5_regex.h:13,
> from ../drivers/regex/mlx5/mlx5_regex_devx.c:12:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1524/3024] Compiling C object
> drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_regex.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/regex/mlx5/mlx5_regex.c:14:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1525/3024] Compiling C object
> drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_rxp.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/regex/mlx5/mlx5_regex.h:13,
> from ../drivers/regex/mlx5/mlx5_rxp.c:18:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1527/3024] Compiling C object
> drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_regex_control.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/regex/mlx5/mlx5_regex_control.c:16:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> ../drivers/regex/mlx5/mlx5_regex_control.c: In function
> ‘mlx5_regex_qp_setup’:
> ../drivers/regex/mlx5/mlx5_regex_control.c:250:47: warning: taking
> address of packed member of ‘struct mlx5_mr_share_cache’ may result in
> an unaligned pointer value [-Waddress-of-packed-member]
> 250 | ret = mlx5_mr_ctrl_init(&qp->mr_ctrl, &priv->cdev-
> >mr_scache.dev_gen,
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [1532/3024] Compiling C object
> drivers/libtmp_rte_regex_mlx5.a.p/regex_mlx5_mlx5_regex_fastpath.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/regex/mlx5/mlx5_regex_fastpath.c:20:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1543/3024] Compiling C object
> drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_event.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/vdpa/mlx5/mlx5_vdpa_event.c:19:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1544/3024] Compiling C object
> drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/vdpa/mlx5/mlx5_vdpa.c:20:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1545/3024] Compiling C object
> drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_lm.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/vdpa/mlx5/mlx5_vdpa_utils.h:8,
> from ../drivers/vdpa/mlx5/mlx5_vdpa_lm.c:7:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1547/3024] Compiling C object
> drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_mem.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/vdpa/mlx5/mlx5_vdpa_mem.c:12:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1548/3024] Compiling C object
> drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_virtq.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/vdpa/mlx5/mlx5_vdpa_virtq.c:12:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1552/3024] Compiling C object
> drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_steer.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/vdpa/mlx5/mlx5_vdpa_steer.c:10:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1553/3024] Compiling C object
> drivers/libtmp_rte_vdpa_mlx5.a.p/vdpa_mlx5_mlx5_vdpa_cthread.c.o
> In file included from ../drivers/common/mlx5/mlx5_common.h:27,
> from ../drivers/vdpa/mlx5/mlx5_vdpa_cthread.c:16:
> ../drivers/common/mlx5/mlx5_common_mr.h: In function ‘mlx5_mr_mb2mr’:
> ../drivers/common/mlx5/mlx5_common_mr.h:201:52: warning: taking address
> of packed member of ‘struct mlx5_mr_ctrl’ may result in an unaligned
> pointer value [-Waddress-of-packed-member]
> 201 | lkey = mlx5_mr_lookup_lkey(mr_ctrl->cache, &mr_ctrl-
> >mru,
> |
> ^~~~~~~~~~~~~
> [1776/3024] Compiling C object lib/librte_efd.a.p/efd_rte_efd.c.o
> ../lib/efd/rte_efd.c: In function ‘efd_lookup_internal’:
> ../lib/efd/rte_efd.c:1295:56: warning: taking address of packed member
> of ‘struct efd_online_group_entry’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 1295 | return efd_lookup_internal_scalar(group-
> >hash_idx,
> |
> ~~~~~^~~~~~~~~~
> ../lib/efd/rte_efd.c:1296:46: warning: taking address of packed member
> of ‘struct efd_online_group_entry’ may result in an unaligned pointer
> value [-Waddress-of-packed-member]
> 1296 | group->lookup_table,
> | ~~~~~^~~~~~~~~~~~~~
> [3024/3024] Linking target app/dpdk-test
> ~/DPDK/main $
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4
2024-10-11 18:20 ` Morten Brørup
@ 2024-10-11 19:07 ` Stephen Hemminger
2024-10-14 7:57 ` Bruce Richardson
1 sibling, 0 replies; 8+ messages in thread
From: Stephen Hemminger @ 2024-10-11 19:07 UTC (permalink / raw)
To: Morten Brørup
Cc: Ferruh Yigit, Robin Jarry, dev, Wathsala Vithanage, Min Zhou,
David Christensen, Stanislaw Kardach, bruce.richardson,
konstantin.v.ananyev, Vipin Varghese, thomas, Jerin Jacob
On Fri, 11 Oct 2024 20:20:12 +0200
Morten Brørup <mb@smartsharesystems.com> wrote:
> rom: Stephen Hemminger [mailto:stephen@networkplumber.org]
> > Sent: Friday, 11 October 2024 19.48
> >
> > On Fri, 11 Oct 2024 19:36:08 +0200
> > Morten Brørup <mb@smartsharesystems.com> wrote:
> >
> > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit
> > > > Sent: Monday, 17 April 2017 16.36
> > > >
> > > > clang 4 gives "taking address of packed member may result in an
> > > > unaligned pointer value" warnings in a few locations [1].
> > > >
> > > > Disabled "-Waddress-of-packed-member" warning for clang >= 4
> > > >
> > > > [1] build errors:
> > > > .../lib/librte_eal/common/eal_common_memzone.c:275:25:
> > > > error: taking address of packed member 'mlock' of class or
> > structure
> > > > 'rte_mem_config' may result in an unaligned pointer value
> > > > [-Werror,-Waddress-of-packed-member]
> > > > rte_rwlock_write_lock(&mcfg->mlock);
> > > > ^~~~~~~~~~~
> > > >
> > > > .../lib/librte_ip_frag/rte_ipv4_reassembly.c:139:31:
> > > > error: taking address of packed member 'src_addr' of class or
> > structure
> > > > 'ipv4_hdr' may result in an unaligned pointer value
> > > > [-Werror,-Waddress-of-packed-member]
> > > > psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
> > > > ^~~~~~~~~~~~~~~~
> > > >
> > > > .../lib/librte_vhost/vhost_user.c:1037:34:
> > > > error: taking address of packed member 'payload' of class or
> > structure
> > > > 'VhostUserMsg' may result in an unaligned pointer value
> > > > [-Werror,-Waddress-of-packed-member]
> > > > vhost_user_set_vring_num(dev, &msg.payload.state);
> > > > ^~~~~~~~~~~~~~~~~
> > > >
> > > > Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> > > > ---
> > > > mk/toolchain/clang/rte.vars.mk | 5 +++++
> > > > 1 file changed, 5 insertions(+)
> > > >
> > > > diff --git a/mk/toolchain/clang/rte.vars.mk
> > > > b/mk/toolchain/clang/rte.vars.mk
> > > > index 7749b99..af34c10 100644
> > > > --- a/mk/toolchain/clang/rte.vars.mk
> > > > +++ b/mk/toolchain/clang/rte.vars.mk
> > > > @@ -79,5 +79,10 @@ include
> > > > $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
> > > > # workaround clang bug with warning "missing field initializer"
> > for "=
> > > > {0}"
> > > > WERROR_FLAGS += -Wno-missing-field-initializers
> > > >
> > > > +# disable packed member unalign warnings
> > > > +ifeq ($(shell test $(CLANG_MAJOR_VERSION) -ge 4 && echo 1), 1)
> > > > +WERROR_FLAGS += -Wno-address-of-packed-member
> > > > +endif
> > > > +
> > > > export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
> > > > export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
> > > > --
> > > > 2.9.3
> > > >
> > >
> > > Revisiting an old patch...
> > >
> > > Maybe the code causing the warnings should have been fixed instead of
> > disabling the compiler warning?
> > >
> > > We would probably handle this differently today... I wonder how many
> > warnings it spews out with the warning enabled?
> > >
> > > -Morten
> > >
> >
> > With gcc-14 and re-enable packed-member and no-zero-length-bounds, lots
> > and lots of warnings.
>
> Thanks for testing this, Stephen.
>
> It seems to confirm my suspicion...
>
> Random sampling:
> - The warning in lib/ip_frag/rte_ipv4_reassembly.c is caused by using a temporary variable instead of mempcy().
> - The warning in drivers/bus/ifpga/ifpga_bus.c is caused by a struct being packed for no good reason.
>
> It reminds me of compiling the kernel in the good old days... spewed out lots of new warnings when using a new compiler version.
>
> This really should be fixed. Disabling compiler warnings because it requires too much work fixing the bugs is not a valid reason.
+1000
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4
2024-10-11 18:20 ` Morten Brørup
2024-10-11 19:07 ` Stephen Hemminger
@ 2024-10-14 7:57 ` Bruce Richardson
1 sibling, 0 replies; 8+ messages in thread
From: Bruce Richardson @ 2024-10-14 7:57 UTC (permalink / raw)
To: Morten Brørup
Cc: Stephen Hemminger, Ferruh Yigit, Robin Jarry, dev,
Wathsala Vithanage, Min Zhou, David Christensen,
Stanislaw Kardach, konstantin.v.ananyev, Vipin Varghese, thomas,
Jerin Jacob
On Fri, Oct 11, 2024 at 08:20:12PM +0200, Morten Brørup wrote:
> > From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> > Sent: Friday, 11 October 2024 19.48
> >
> > On Fri, 11 Oct 2024 19:36:08 +0200
> > Morten Brørup <mb@smartsharesystems.com> wrote:
> >
> > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit
> > > > Sent: Monday, 17 April 2017 16.36
> > > >
> > > > clang 4 gives "taking address of packed member may result in an
> > > > unaligned pointer value" warnings in a few locations [1].
> > > >
> > > > Disabled "-Waddress-of-packed-member" warning for clang >= 4
> > > >
> > > > [1] build errors:
> > > > .../lib/librte_eal/common/eal_common_memzone.c:275:25:
> > > > error: taking address of packed member 'mlock' of class or
> > structure
> > > > 'rte_mem_config' may result in an unaligned pointer value
> > > > [-Werror,-Waddress-of-packed-member]
> > > > rte_rwlock_write_lock(&mcfg->mlock);
> > > > ^~~~~~~~~~~
> > > >
> > > > .../lib/librte_ip_frag/rte_ipv4_reassembly.c:139:31:
> > > > error: taking address of packed member 'src_addr' of class or
> > structure
> > > > 'ipv4_hdr' may result in an unaligned pointer value
> > > > [-Werror,-Waddress-of-packed-member]
> > > > psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
> > > > ^~~~~~~~~~~~~~~~
> > > >
> > > > .../lib/librte_vhost/vhost_user.c:1037:34:
> > > > error: taking address of packed member 'payload' of class or
> > structure
> > > > 'VhostUserMsg' may result in an unaligned pointer value
> > > > [-Werror,-Waddress-of-packed-member]
> > > > vhost_user_set_vring_num(dev, &msg.payload.state);
> > > > ^~~~~~~~~~~~~~~~~
> > > >
> > > > Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> > > > ---
> > > > mk/toolchain/clang/rte.vars.mk | 5 +++++
> > > > 1 file changed, 5 insertions(+)
> > > >
> > > > diff --git a/mk/toolchain/clang/rte.vars.mk
> > > > b/mk/toolchain/clang/rte.vars.mk
> > > > index 7749b99..af34c10 100644
> > > > --- a/mk/toolchain/clang/rte.vars.mk
> > > > +++ b/mk/toolchain/clang/rte.vars.mk
> > > > @@ -79,5 +79,10 @@ include
> > > > $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
> > > > # workaround clang bug with warning "missing field initializer"
> > for "=
> > > > {0}"
> > > > WERROR_FLAGS += -Wno-missing-field-initializers
> > > >
> > > > +# disable packed member unalign warnings
> > > > +ifeq ($(shell test $(CLANG_MAJOR_VERSION) -ge 4 && echo 1), 1)
> > > > +WERROR_FLAGS += -Wno-address-of-packed-member
> > > > +endif
> > > > +
> > > > export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
> > > > export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
> > > > --
> > > > 2.9.3
> > > >
> > >
> > > Revisiting an old patch...
> > >
> > > Maybe the code causing the warnings should have been fixed instead of
> > disabling the compiler warning?
> > >
> > > We would probably handle this differently today... I wonder how many
> > warnings it spews out with the warning enabled?
> > >
> > > -Morten
> > >
> >
> > With gcc-14 and re-enable packed-member and no-zero-length-bounds, lots
> > and lots of warnings.
>
> Thanks for testing this, Stephen.
>
> It seems to confirm my suspicion...
>
> Random sampling:
> - The warning in lib/ip_frag/rte_ipv4_reassembly.c is caused by using a temporary variable instead of mempcy().
> - The warning in drivers/bus/ifpga/ifpga_bus.c is caused by a struct being packed for no good reason.
>
> It reminds me of compiling the kernel in the good old days... spewed out lots of new warnings when using a new compiler version.
>
> This really should be fixed. Disabling compiler warnings because it requires too much work fixing the bugs is not a valid reason.
>
> >
> > The ones related to locks are particularly concerning. Since many cpu's
> > can't do locked operation
> > on unaligned fields.
>
> It certainly does raise the level of concern!
>
> > Mlx5 driver seems particularly bad.
>
> More sampling - zooming in on the mlx5 driver - makes me wonder why struct mlx5_mr_share_cache is packed.
>
> Perhaps most of these warnings - generally, not limited to the mlx5 driver - will go away if we review if the involved structures really need to be packed.
>
> >
Is a first step on this to change the flag to fix any easy warnings, and
then change the flag to be per-component only for those that need more work
to fix? That should at least stop more issues from appearing in the
codebase over time.
/Bruce
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-10-14 7:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-17 14:35 [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4 Ferruh Yigit
2017-04-17 14:35 ` [dpdk-dev] [PATCH 2/2] eventdev: " Ferruh Yigit
2017-04-19 13:23 ` [dpdk-dev] [PATCH 1/2] mk: " Thomas Monjalon
2024-10-11 17:36 ` Morten Brørup
2024-10-11 17:48 ` Stephen Hemminger
2024-10-11 18:20 ` Morten Brørup
2024-10-11 19:07 ` Stephen Hemminger
2024-10-14 7:57 ` Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).