[PATCH v6 30/30] lib/eal: remove __rte_packed
Andre Muezerie
andremue at linux.microsoft.com
Wed Nov 27 01:52:41 CET 2024
Remove macro __rte_packed now that the code was made portable using
__rte_packed_begin to push existing pack value
and set packing to 1-byte and macro __rte_packed_end to restore
the pack value prior to the push when MSVC is used.
Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
---
lib/eal/include/rte_common.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h
index affdcaf3c1..21bfd26b2b 100644
--- a/lib/eal/include/rte_common.h
+++ b/lib/eal/include/rte_common.h
@@ -99,15 +99,6 @@ typedef uint32_t unaligned_uint32_t;
typedef uint16_t unaligned_uint16_t;
#endif
-/**
- * Force a structure to be packed
- */
-#ifdef RTE_TOOLCHAIN_MSVC
-#define __rte_packed
-#else
-#define __rte_packed __attribute__((__packed__))
-#endif
-
/**
* Force a structure to be packed
*/
--
2.34.1
More information about the dev
mailing list