From 219be8dff129c659102bb9d7a6a5f85336685b49 Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Thu, 14 Oct 2021 09:41:41 +0300 Subject: [PATCH] dma: Change signature of fetch callback iovs are not needed in the callback Signed-off-by: Alexey Marchuk Change-Id: I29718f1f2e65881628b72dea938e40c60348b85d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9877 Community-CI: Broadcom CI Reviewed-by: Changpeng Liu Reviewed-by: Ben Walker Tested-by: SPDK CI Jenkins --- include/spdk/dma.h | 6 ++---- test/unit/lib/dma/dma.c/dma_ut.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/spdk/dma.h b/include/spdk/dma.h index 0b3bac3f9d..d08500e459 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 7f19beb674..0bd446373b 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) { }