From: Haiyue Wang Date: Sun, 8 Mar 2020 04:18:24 +0000 (+0800) Subject: eal: fix 32-bit structure marker X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8d93a03170f9e06260b4092f02bd2203d0fdd26f;p=dpdk.git eal: fix 32-bit structure marker Use the 32bit typedef for structure 4B alignment marking. Fixes: 2b393160a480 ("eal: introduce structure markers") Cc: stable@dpdk.org Signed-off-by: Haiyue Wang Acked-by: Xiaolong Ye Acked-by: Jerin Jacob --- diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index 4b5f3a31f0..3662545d20 100644 --- a/lib/librte_eal/common/include/rte_common.h +++ b/lib/librte_eal/common/include/rte_common.h @@ -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];