Message ID | 1736383715-31703-31-git-send-email-andremue@linux.microsoft.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Thomas Monjalon |
Headers | |
Series | fix packing of structs when building with MSVC | |
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
ci/loongarch-compilation | success | Compilation OK |
ci/loongarch-unit-testing | success | Unit Testing PASS |
ci/Intel-compilation | success | Compilation OK |
ci/intel-Testing | success | Testing PASS |
ci/github-robot: build | success | github build: passed |
ci/intel-Functional | success | Functional PASS |
ci/iol-mellanox-Performance | success | Performance Testing PASS |
ci/iol-sample-apps-testing | success | Testing PASS |
ci/iol-marvell-Functional | success | Functional Testing PASS |
ci/iol-intel-Performance | success | Performance Testing PASS |
ci/iol-intel-Functional | success | Functional Testing PASS |
ci/iol-abi-testing | success | Testing PASS |
Commit Message
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: