dma/cnxk: fix driver header
Checks
Commit Message
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.marchand@redhat.com>
---
drivers/dma/cnxk/cnxk_dma_event_dp.h | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
On Fri, Mar 22, 2024 at 02:52:55PM +0100, David Marchand wrote:
> 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.marchand@redhat.com>
> ---
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
22/03/2024 17:04, Tyler Retzlaff:
> On Fri, Mar 22, 2024 at 02:52:55PM +0100, David Marchand wrote:
> > 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.marchand@redhat.com>
>
> Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Applied, thanks.
@@ -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_ */