eal: fix structure marker 4B type error
PATCH 1/1 eal: fix structure marker 4B type error
Use the 32bit typedef for structure 4B alignment marking.
Fixes 2b393160a480 ("eal: introduce structure markers")
Signed-off-by Haiyue Wang <[email protected]>
--- lib/librte_eal/common/include/rte_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_eal/common/include/rte_common.h +1 -1
@@ -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 ];
Signature · 1 line
2.25.1
Quoted 26 lines · Haiyue Wang
Use the 32bit typedef for structure 4B alignment marking.
Fixes 2b393160a480 ("eal: introduce structure markers")Signed-off-by Haiyue Wang <[email protected]>---
lib/librte_eal/common/include/rte_common.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)lib/librte_eal/common/include/rte_common.h +1
-1@@ -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 ];Signature · 1 line
2.25.1
Acked-by Xiaolong Ye <[email protected]>
Jerin Jacob
Acked-byQuoted 25 lines · Ye Xiaolong
Quoted 23 lines · Haiyue Wang
Use the 32bit typedef for structure 4B alignment marking.
Fixes 2b393160a480 ("eal: introduce structure markers")Signed-off-by Haiyue Wang <[email protected]>---
lib/librte_eal/common/include/rte_common.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)lib/librte_eal/common/include/rte_common.h +1
-1@@ -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 ];
Quoted 5 lines
Quoted 3 lines
--
2.25.1Acked-by Xiaolong Ye <[email protected]>
Acked-by Jerin Jacob <[email protected]>
Quoted 6 lines · Haiyue Wang
Use the 32bit typedef for structure 4B alignment marking.
Fixes 2b393160a480 ("eal: introduce structure markers")Signed-off-by Haiyue Wang <[email protected]>
Acked-by Xiaolong Ye <[email protected]>
Acked-by Jerin Jacob <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand