From c9ec4ff4414e82c2f9bab41ffb5afd4a94933e01 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 15 Apr 2025 09:14:49 +0200 Subject: [PATCH] vppinfra: explicitelly cast to void * to silence clangd Type: fix Change-Id: I286c73d532368e3726269cce9a6993c4911e99cb Signed-off-by: Damjan Marion --- src/vppinfra/pool.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vppinfra/pool.h b/src/vppinfra/pool.h index 07c9269c6d8..d73a9783ba8 100644 --- a/src/vppinfra/pool.h +++ b/src/vppinfra/pool.h @@ -421,18 +421,20 @@ _pool_free (void **v) #define pool_free(p) _pool_free ((void **) &(p)) static_always_inline uword -pool_get_first_index (void *pool) +_pool_get_first_index (void *pool) { pool_header_t *h = pool_header (pool); return clib_bitmap_first_clear (h->free_bitmap); } +#define pool_get_first_index(p) _pool_get_first_index ((void *) (p)) static_always_inline uword -pool_get_next_index (void *pool, uword last) +_pool_get_next_index (void *pool, uword last) { pool_header_t *h = pool_header (pool); return clib_bitmap_next_clear (h->free_bitmap, last + 1); } +#define pool_get_next_index(p, l) _pool_get_next_index ((void *) (p), l) /** Optimized iteration through pool. -- 2.16.6