From e904fd77d88666f1a4270b1380f2661c9195f012 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Tue, 22 Feb 2022 12:26:10 +0100 Subject: [PATCH] dmadev: add missing header include MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Acked-by: Bruce Richardson Acked-by: Conor Walsh --- lib/dmadev/rte_dmadev_pmd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dmadev/rte_dmadev_pmd.h b/lib/dmadev/rte_dmadev_pmd.h index 5316ad5b5f..82ab7a8cc7 100644 --- a/lib/dmadev/rte_dmadev_pmd.h +++ b/lib/dmadev/rte_dmadev_pmd.h @@ -14,6 +14,8 @@ * by any application. */ +#include + #include "rte_dmadev.h" #ifdef __cplusplus -- 2.39.5