[dpdk-dev] [PATCH v2 3/3] dmadev: fix compile error in debug mode

Chengwen Feng fengchengwen at huawei.com
Thu Oct 21 14:59:38 CEST 2021


This patch fix compile error when enable RTE_DMADEV_DEBUG.

Fixes: ea8cf0f8536d ("dmadev: add burst capacity API")

Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
---
 lib/dmadev/rte_dmadev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h
index f5d23017b1..9942c6ec21 100644
--- a/lib/dmadev/rte_dmadev.h
+++ b/lib/dmadev/rte_dmadev.h
@@ -1126,7 +1126,7 @@ rte_dma_burst_capacity(int16_t dev_id, uint16_t vchan)
 #ifdef RTE_DMADEV_DEBUG
 	if (!rte_dma_is_valid(dev_id))
 		return 0;
-	RTE_FUNC_PTR_OR_ERR_RET(*obbj->burst_capacity, 0);
+	RTE_FUNC_PTR_OR_ERR_RET(*obj->burst_capacity, 0);
 #endif
 	return (*obj->burst_capacity)(obj->dev_private, vchan);
 }
-- 
2.33.0



More information about the dev mailing list