aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic
diff options
context:
space:
mode:
authorBill Fischofer <bill.fischofer@linaro.org>2015-05-08 14:31:56 -0500
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-05-11 19:22:15 +0300
commitb72707dac0fd7881d89782c685a6aa2b070b1c63 (patch)
tree22d1ed47dc9c61bac418e8dd3932cca39ecfc404 /platform/linux-generic
parent9a02ee45bd64f1169af6aa20f2f3ca8730e095b1 (diff)
linux-generic: remove extraneous ASSERTs
No need to check that odp_packet_hdr_t is 64 bit aligned because it's part of odp_packet_hdr_stride which is cache aligned. This assert fails in case of arm 64-32, so just remove it from code. Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic')
-rw-r--r--platform/linux-generic/include/odp_packet_internal.h3
-rw-r--r--platform/linux-generic/odp_pool.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h
index c3dcdd877..90dfe808f 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -139,9 +139,6 @@ typedef struct odp_packet_hdr_stride {
uint8_t pad[ODP_CACHE_LINE_SIZE_ROUNDUP(sizeof(odp_packet_hdr_t))];
} odp_packet_hdr_stride;
-_ODP_STATIC_ASSERT(sizeof(odp_packet_hdr_t) % sizeof(uint64_t) == 0,
- "ODP_PACKET_HDR_T__SIZE_ERR2");
-
/**
* Return the packet header
*/
diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c
index f887665c3..cd2c4499c 100644
--- a/platform/linux-generic/odp_pool.c
+++ b/platform/linux-generic/odp_pool.c
@@ -35,9 +35,6 @@ typedef union buffer_type_any_u {
odp_timeout_hdr_t tmo;
} odp_anybuf_t;
-_ODP_STATIC_ASSERT((sizeof(union buffer_type_any_u) % 8) == 0,
- "BUFFER_TYPE_ANY_U__SIZE_ERR");
-
/* Any buffer type header */
typedef struct {
union buffer_type_any_u any_hdr; /* any buffer type */