Skip to content

Commit

Permalink
dmadev: add missing header include
Browse files Browse the repository at this point in the history
[ upstream commit e904fd7 ]

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: b36970f ("dmadev: introduce DMA device library")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Conor Walsh <conor.walsh@intel.com>
  • Loading branch information
tmonjalo authored and kevintraynor committed Feb 24, 2022
1 parent 692ae33 commit 81c40b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/dmadev/rte_dmadev_pmd.h
Expand Up @@ -14,6 +14,8 @@
* by any application.
*/

#include <rte_dev.h>

#include "rte_dmadev.h"

#ifdef __cplusplus
Expand Down

0 comments on commit 81c40b0

Please sign in to comment.