[PATCH v11 30/30] eal/include: deprecate macro __rte_packed
Andre Muezerie
andremue at linux.microsoft.com
Fri Jan 10 23:16:51 CET 2025
Macro __rte_packed was marked as deprecated.
Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
---
lib/eal/include/rte_common.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h
index d72f8590bd..40592f71b1 100644
--- a/lib/eal/include/rte_common.h
+++ b/lib/eal/include/rte_common.h
@@ -99,6 +99,19 @@ typedef uint32_t unaligned_uint32_t;
typedef uint16_t unaligned_uint16_t;
#endif
+/**
+ * @deprecated
+ * @see __rte_packed_begin
+ * @see __rte_packed_end
+ *
+ * Force a structure to be packed
+ */
+#ifdef RTE_TOOLCHAIN_MSVC
+#define __rte_packed RTE_DEPRECATED(__rte_packed)
+#else
+#define __rte_packed (RTE_DEPRECATED(__rte_packed) __attribute__((__packed__)))
+#endif
+
/**
* Force a structure to be packed
* Usage:
--
2.47.0.vfs.0.3
More information about the dev
mailing list