DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] dma/cnxk: fix driver header
@ 2024-03-22 13:52 David Marchand
  2024-03-22 16:04 ` Tyler Retzlaff
  0 siblings, 1 reply; 3+ messages in thread
From: David Marchand @ 2024-03-22 13:52 UTC (permalink / raw)
  To: dev; +Cc: Vamsi Attunuru, Amit Prakash Shukla, Pavan Nikhilesh

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(+)

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dma/cnxk: fix driver header
  2024-03-22 13:52 [PATCH] dma/cnxk: fix driver header David Marchand
@ 2024-03-22 16:04 ` Tyler Retzlaff
  2024-03-24 17:35   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Tyler Retzlaff @ 2024-03-22 16:04 UTC (permalink / raw)
  To: David Marchand; +Cc: dev, Vamsi Attunuru, Amit Prakash Shukla, Pavan Nikhilesh

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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dma/cnxk: fix driver header
  2024-03-22 16:04 ` Tyler Retzlaff
@ 2024-03-24 17:35   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2024-03-24 17:35 UTC (permalink / raw)
  To: David Marchand
  Cc: dev, Vamsi Attunuru, Amit Prakash Shukla, Pavan Nikhilesh,
	Tyler Retzlaff

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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-24 17:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-22 13:52 [PATCH] dma/cnxk: fix driver header David Marchand
2024-03-22 16:04 ` Tyler Retzlaff
2024-03-24 17:35   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).