diff --git a/include/spdk/dma.h b/include/spdk/dma.h index 0b3bac3f9..d08500e45 100644 --- a/include/spdk/dma.h +++ b/include/spdk/dma.h @@ -66,11 +66,9 @@ struct spdk_memory_domain; * Definition of completion callback to be called by fetch function. * * \param ctx User context passed to fetch function - * \param iov Pointer to iovs that hold result of fetch function - * \param iovcnt iov array size - * \param rc Result of asynchronous fetch function. Data in iov is valid only when rc is 0 + * \param rc Result of asynchronous fetch function */ -typedef void (*spdk_memory_domain_fetch_data_cpl_cb)(void *ctx, void *iov, uint32_t iovcnt, int rc); +typedef void (*spdk_memory_domain_fetch_data_cpl_cb)(void *ctx, int rc); /** * Definition of function which asynchronously fetches data from src_domain to local memory domain. diff --git a/test/unit/lib/dma/dma.c/dma_ut.c b/test/unit/lib/dma/dma.c/dma_ut.c index 7f19beb67..0bd446373 100644 --- a/test/unit/lib/dma/dma.c/dma_ut.c +++ b/test/unit/lib/dma/dma.c/dma_ut.c @@ -41,7 +41,7 @@ static bool g_memory_domain_translate_called; static int g_memory_domain_cb_rc = 123; static void -test_memory_domain_fetch_data_cpl_cb(void *ctx, void *iov, uint32_t iovcnt, int rc) +test_memory_domain_fetch_data_cpl_cb(void *ctx, int rc) { }