From: Tyler Retzlaff <roret...@linux.microsoft.com> Add __rte_msvc_pack to all __rte_packed structs to cause packing when building with MSVC.
Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com> --- drivers/net/ice/base/ice_osdep.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/base/ice_osdep.h b/drivers/net/ice/base/ice_osdep.h index 5f7347023f..d0280dd2c2 100644 --- a/drivers/net/ice/base/ice_osdep.h +++ b/drivers/net/ice/base/ice_osdep.h @@ -187,6 +187,7 @@ do { \ #define BITS_PER_BYTE 8 /* memory allocation tracking */ +__rte_msvc_pack struct ice_dma_mem { void *va; u64 pa; @@ -194,6 +195,7 @@ struct ice_dma_mem { const void *zone; } __rte_packed; +__rte_msvc_pack struct ice_virt_mem { void *va; u32 size; -- 2.47.0.vfs.0.3