vppinfra: explicitelly cast to void * to silence clangd 93/42793/2
authorDamjan Marion <[email protected]>
Tue, 15 Apr 2025 07:14:49 +0000 (09:14 +0200)
committerAndrew Yourtchenko <[email protected]>
Tue, 15 Apr 2025 11:13:50 +0000 (11:13 +0000)
Type: fix
Change-Id: I286c73d532368e3726269cce9a6993c4911e99cb
Signed-off-by: Damjan Marion <[email protected]>
src/vppinfra/pool.h

index 07c9269..d73a978 100644 (file)
@@ -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.