dma/cnxk: fix driver header
PATCH 1/1 dma/cnxk: fix driver header
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 <[email protected]>
--- drivers/dma/cnxk/cnxk_dma_event_dp.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/dma/cnxk/cnxk_dma_event_dp.h +10 -0
@@ -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_ */
Signature · 1 line
2.44.0
Quoted 7 lines · David Marchand
Add missing 'extern "C"' to file.
Using__rte_internalrequires includingrte_compat.h.Fixes 1693345b6a33 ("dma/cnxk: support DMA event enqueue/dequeue")Signed-off-by David Marchand <[email protected]>---
Acked-by Tyler Retzlaff <[email protected]>
Thomas Monjalon
Applied22/03/2024 17:04, Tyler Retzlaff:
Quoted 9 lines · David Marchand
Quoted 6 lines
Add missing 'extern "C"' to file.
Using__rte_internalrequires includingrte_compat.h.Fixes 1693345b6a33 ("dma/cnxk: support DMA event enqueue/dequeue")Signed-off-by David Marchand <[email protected]>Acked-by Tyler Retzlaff <[email protected]>
Applied, thanks.