From: Chengwen Feng Date: Thu, 21 Oct 2021 12:59:38 +0000 (+0800) Subject: dmadev: fix debug build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a188277d5357dd3c7957070650aaac0027bf69dd;p=dpdk.git 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 --- 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); }