diff mbox

[PATCHv2] linux-generic: buffers: remove vestigial asserts for 32-bit support

Message ID 1420637614-3841-1-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer Jan. 7, 2015, 1:33 p.m. UTC
Fix for bug 1031 to enable linux-generic compiles on 32-bit systems.

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/include/odp_buffer_internal.h | 3 ---
 platform/linux-generic/include/odp_timer_internal.h  | 3 ---
 2 files changed, 6 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h
index 60f06c9..c64802b 100644
--- a/platform/linux-generic/include/odp_buffer_internal.h
+++ b/platform/linux-generic/include/odp_buffer_internal.h
@@ -136,9 +136,6 @@  typedef struct odp_buffer_hdr_t {
 typedef struct odp_buffer_hdr_stride {
 	uint8_t pad[ODP_CACHE_LINE_SIZE_ROUNDUP(sizeof(odp_buffer_hdr_t))];
 } odp_buffer_hdr_stride;
-/* Ensure next header starts from 8 byte align */
-_ODP_STATIC_ASSERT((sizeof(odp_buffer_hdr_t) % 8) == 0,
-		   "ODP_BUFFER_HDR_T__SIZE_ERROR");
 
 typedef struct odp_buf_blk_t {
 	struct odp_buf_blk_t *next;
diff --git a/platform/linux-generic/include/odp_timer_internal.h b/platform/linux-generic/include/odp_timer_internal.h
index 0d10d00..c635e3b 100644
--- a/platform/linux-generic/include/odp_timer_internal.h
+++ b/platform/linux-generic/include/odp_timer_internal.h
@@ -59,9 +59,6 @@  _ODP_STATIC_ASSERT(sizeof(odp_timeout_hdr_t) ==
 		   ODP_OFFSETOF(odp_timeout_hdr_t, buf_data),
 		   "ODP_TIMEOUT_HDR_T__SIZE_ERR");
 
-_ODP_STATIC_ASSERT(sizeof(odp_timeout_hdr_t) % sizeof(uint64_t) == 0,
-		   "ODP_TIMEOUT_HDR_T__SIZE_ERR2");
-
 
 /**
  * Return timeout header