diff --git a/include/spdk/env.h b/include/spdk/env.h index 57194d37e..c401f55b3 100644 --- a/include/spdk/env.h +++ b/include/spdk/env.h @@ -370,7 +370,7 @@ void spdk_mempool_put(struct spdk_mempool *mp, void *ele); * \param ele_arr Array of the elements to put. * \param count Count of elements to put. */ -void spdk_mempool_put_bulk(struct spdk_mempool *mp, void *const *ele_arr, size_t count); +void spdk_mempool_put_bulk(struct spdk_mempool *mp, void **ele_arr, size_t count); /** * Get the number of entries in the memory pool. diff --git a/lib/env_dpdk/env.c b/lib/env_dpdk/env.c index 86eaed58b..bcbe305ec 100644 --- a/lib/env_dpdk/env.c +++ b/lib/env_dpdk/env.c @@ -260,7 +260,7 @@ spdk_mempool_put(struct spdk_mempool *mp, void *ele) } void -spdk_mempool_put_bulk(struct spdk_mempool *mp, void *const *ele_arr, size_t count) +spdk_mempool_put_bulk(struct spdk_mempool *mp, void **ele_arr, size_t count) { rte_mempool_put_bulk((struct rte_mempool *)mp, ele_arr, count); }