eal: fix 32-bit structure marker
authorHaiyue Wang <haiyue.wang@intel.com>
Sun, 8 Mar 2020 04:18:24 +0000 (12:18 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 13 Mar 2020 12:44:44 +0000 (13:44 +0100)
Use the 32bit typedef for structure 4B alignment marking.

Fixes: 2b393160a480 ("eal: introduce structure markers")
Cc: stable@dpdk.org
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
lib/librte_eal/common/include/rte_common.h

index 4b5f3a3..3662545 100644 (file)
@@ -344,7 +344,7 @@ __extension__ typedef uint8_t  RTE_MARKER8[0];
 /** Marker for 2B alignment in a structure. */
 __extension__ typedef uint16_t RTE_MARKER16[0];
 /** Marker for 4B alignment in a structure. */
-__extension__ typedef uint16_t RTE_MARKER32[0];
+__extension__ typedef uint32_t RTE_MARKER32[0];
 /** Marker for 8B alignment in a structure. */
 __extension__ typedef uint64_t RTE_MARKER64[0];