[RFC,3/6] eventdev: do not include driver header in DMA adapter

Message ID 20241127112617.1331125-4-david.marchand@redhat.com (mailing list archive)
State Superseded
Delegated to: Thomas Monjalon
Headers
Series Add a stricter headers check |

Commit Message

David Marchand Nov. 27, 2024, 11:26 a.m. UTC
The dma adapter header does not require including rte_dmadev_pmd.h which
is a driver header.

Fixes: 66a30a29387a ("eventdev/dma: introduce DMA adapter")

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 lib/eventdev/rte_event_dma_adapter.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Amit Prakash Shukla Nov. 27, 2024, 1:49 p.m. UTC | #1
> Subject: [EXTERNAL] [RFC 3/6] eventdev: do not include driver header in DMA
> adapter
> 
> The dma adapter header does not require including rte_dmadev_pmd. h
> which is a driver header. Fixes: 66a30a29387a ("eventdev/dma: introduce
> DMA adapter") Signed-off-by: David Marchand
> <david. marchand@ redhat. com> --- lib/eventdev/rte_event_dma_adapter. h
> The dma adapter header does not require including rte_dmadev_pmd.h
> which is a driver header.
> 
> Fixes: 66a30a29387a ("eventdev/dma: introduce DMA adapter")
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
>  lib/eventdev/rte_event_dma_adapter.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Acked-by: Amit Prakash Shukla <amitprakashs@marvell.com>

Thanks

> diff --git a/lib/eventdev/rte_event_dma_adapter.h
> b/lib/eventdev/rte_event_dma_adapter.h
> index 5c480b82ff..34142f26db 100644
> --- a/lib/eventdev/rte_event_dma_adapter.h
> +++ b/lib/eventdev/rte_event_dma_adapter.h
> @@ -144,7 +144,7 @@
>  #include <stdint.h>
> 
>  #include <rte_common.h>
> -#include <rte_dmadev_pmd.h>
> +#include <rte_dmadev.h>
>  #include <rte_eventdev.h>
> 
>  #ifdef __cplusplus
> --
> 2.47.0
  

Patch

diff --git a/lib/eventdev/rte_event_dma_adapter.h b/lib/eventdev/rte_event_dma_adapter.h
index 5c480b82ff..34142f26db 100644
--- a/lib/eventdev/rte_event_dma_adapter.h
+++ b/lib/eventdev/rte_event_dma_adapter.h
@@ -144,7 +144,7 @@ 
 #include <stdint.h>
 
 #include <rte_common.h>
-#include <rte_dmadev_pmd.h>
+#include <rte_dmadev.h>
 #include <rte_eventdev.h>
 
 #ifdef __cplusplus