https://bugs.linaro.org/show_bug.cgi?id=1165
Bug ID: 1165
Summary: The additional checking maco POOL_ERROR_CHECK is
broken
Product: OpenDataPlane
Version: 0.9
Hardware: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: ---
Component: Buffers & Packets
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
The following change to enable the macro results in the errors listed
--- a/platform/linux-generic/include/odp_buffer_pool_internal.h
+++ b/platform/linux-generic/include/odp_buffer_pool_internal.h
@@ -62,7 +62,7 @@ typedef struct local_cache_t {
#define POOL_USE_TICKETLOCK
/* Extra error checks */
-/* #define POOL_ERROR_CHECK */
+ #define POOL_ERROR_CHECK
./include/odp_buffer_inlines.h:55:3: error: implicit declaration of function
'ODP_ERR' [-Werror=implicit-function-declaration]
ODP_ERR("odp_buf_to_hdr: Bad pool id\n");
^
./include/odp_buffer_inlines.h:55:3: error: nested extern declaration of
'ODP_ERR' [-Werror=nested-externs]
In file included from ./include/odp_buffer_pool_internal.h:26:0,
from odp_buffer.c:8:
./include/odp_buffer_inlines.h:63:39: error: 'odp_pool_param_t' has no member
named 'num_bufs'
if (odp_unlikely(index > pool->params.num_bufs - 1)) {
^
./include/api/odp_hints.h:52:43: note: in definition of macro 'odp_unlikely'
#define odp_unlikely(x) __builtin_expect((x), 0)
^
cc1: all warnings being treated as errors
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp