]> git.droids-corp.org - dpdk.git/commitdiff
dmadev: add missing header include
authorThomas Monjalon <thomas@monjalon.net>
Tue, 22 Feb 2022 11:26:10 +0000 (12:26 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 Feb 2022 13:47:41 +0000 (14:47 +0100)
When checking C++ compatibility of SDK headers,
an error is detected by the compiler:

lib/dmadev/rte_dmadev_pmd.h:95:23: error:
‘RTE_DEV_NAME_MAX_LEN’ undeclared here (not in a function)

The header file rte_dev.h must be included.

Fixes: b36970f2e13e ("dmadev: introduce DMA device library")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Conor Walsh <conor.walsh@intel.com>
lib/dmadev/rte_dmadev_pmd.h

index 5316ad5b5fabb7959e52bac79ecfde7d52a6a92d..82ab7a8cc7a7858447cc87b0e8d2bcef0c5c3243 100644 (file)
@@ -14,6 +14,8 @@
  * by any application.
  */
 
+#include <rte_dev.h>
+
 #include "rte_dmadev.h"
 
 #ifdef __cplusplus