dmadev: fix debug build
authorChengwen Feng <fengchengwen@huawei.com>
Thu, 21 Oct 2021 12:59:38 +0000 (20:59 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 21 Oct 2021 20:10:22 +0000 (22:10 +0200)
This patch fix compile error when enable RTE_DMADEV_DEBUG.

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

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Conor Walsh <conor.walsh@intel.com>
lib/dmadev/rte_dmadev.h

index f5d2301..9942c6e 100644 (file)
@@ -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);
 }