@@ -64,6 +64,12 @@ struct pool_entry_s {
size_t hdr_size;
};
+typedef union pool_entry_u {
+ struct pool_entry_s s;
+
+ uint8_t pad[ODP_CACHE_LINE_SIZE_ROUNDUP(sizeof(struct pool_entry_s))];
+
+} pool_entry_t;
extern void *pool_entry_ptr[];
@@ -73,6 +79,10 @@ static inline void *get_pool_entry(uint32_t pool_id)
return pool_entry_ptr[pool_id];
}
+static inline uint32_t pool_handle_to_index(odp_buffer_pool_t pool_hdl)
+{
+ return pool_hdl - 1;
+}
static inline odp_buffer_hdr_t *odp_buf_to_hdr(odp_buffer_t buf)
{
@@ -56,12 +56,6 @@ typedef struct {
} odp_any_buffer_hdr_t;
-typedef union pool_entry_u {
- struct pool_entry_s s;
-
- uint8_t pad[ODP_CACHE_LINE_SIZE_ROUNDUP(sizeof(struct pool_entry_s))];
-
-} pool_entry_t;
typedef struct pool_table_t {
@@ -86,10 +80,6 @@ static inline odp_buffer_pool_t pool_index_to_handle(uint32_t pool_id)
}
-static inline uint32_t pool_handle_to_index(odp_buffer_pool_t pool_hdl)
-{
- return pool_hdl -1;
-}
static inline void set_handle(odp_buffer_hdr_t *hdr,
This patch moves the static inline functions and typedefs in buffer implementation to internal header file. This is needed for accessing inline functions from other modules. Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org> --- platform/linux-generic/include/odp_buffer_pool_internal.h | 10 ++++++++++ platform/linux-generic/odp_buffer_pool.c | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-)