Add missing 'extern "C"' to file. Using __rte_internal requires including rte_compat.h.
Fixes: 1693345b6a33 ("dma/cnxk: support DMA event enqueue/dequeue") Signed-off-by: David Marchand <david.march...@redhat.com> --- drivers/dma/cnxk/cnxk_dma_event_dp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/dma/cnxk/cnxk_dma_event_dp.h b/drivers/dma/cnxk/cnxk_dma_event_dp.h index 85374792a6..06b5ca8279 100644 --- a/drivers/dma/cnxk/cnxk_dma_event_dp.h +++ b/drivers/dma/cnxk/cnxk_dma_event_dp.h @@ -5,9 +5,14 @@ #ifndef _CNXK_DMA_EVENT_DP_H_ #define _CNXK_DMA_EVENT_DP_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include <stdint.h> #include <rte_common.h> +#include <rte_compat.h> #include <rte_eventdev.h> __rte_internal @@ -21,4 +26,9 @@ uint16_t cn9k_dma_adapter_dual_enqueue(void *ws, struct rte_event ev[], uint16_t __rte_internal uintptr_t cnxk_dma_adapter_dequeue(uintptr_t get_work1); + +#ifdef __cplusplus +} +#endif + #endif /* _CNXK_DMA_EVENT_DP_H_ */ -- 2.44.0