Message ID | 1397775822-26517-3-git-send-email-taras.kondratiuk@linaro.org |
---|---|
State | Superseded |
Headers | show |
diff --git a/platform/linux-generic/include/plat/odp_buffer.h b/platform/linux-generic/include/plat/odp_buffer.h index 01a96c5..c038fbc 100644 --- a/platform/linux-generic/include/plat/odp_buffer.h +++ b/platform/linux-generic/include/plat/odp_buffer.h @@ -10,3 +10,12 @@ typedef uint32_t odp_buffer_t; #define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */ +/* Return dump value */ +static inline size_t odp_buffer_size(odp_buffer_t buf) +{ + size_t size = 1; + (void)buf; + + return size; +} + diff --git a/platform/linux-generic/source/odp_buffer.c b/platform/linux-generic/source/odp_buffer.c index afbe96a..add8e2c 100644 --- a/platform/linux-generic/source/odp_buffer.c +++ b/platform/linux-generic/source/odp_buffer.c @@ -19,15 +19,6 @@ void *odp_buffer_addr(odp_buffer_t buf) return hdr->addr; } - -size_t odp_buffer_size(odp_buffer_t buf) -{ - odp_buffer_hdr_t *hdr = odp_buf_to_hdr(buf); - - return hdr->size; -} - - int odp_buffer_type(odp_buffer_t buf) { odp_buffer_hdr_t *hdr = odp_buf_to_hdr(buf);
Static variant return a dump value. Just to demonstrate the idea. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> --- platform/linux-generic/include/plat/odp_buffer.h | 9 +++++++++ platform/linux-generic/source/odp_buffer.c | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-)