From a188277d5357dd3c7957070650aaac0027bf69dd Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Thu, 21 Oct 2021 20:59:38 +0800 Subject: [PATCH] dmadev: fix debug build This patch fix compile error when enable RTE_DMADEV_DEBUG. Fixes: ea8cf0f8536d ("dmadev: add burst capacity API") Signed-off-by: Chengwen Feng Reviewed-by: David Marchand Acked-by: Kevin Laatz Acked-by: Conor Walsh --- 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.20.1