dmadev: add missing header include
PATCH 1/1 dmadev: add missing header include
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.
--- lib/dmadev/rte_dmadev_pmd.h | 2 ++ 1 file changed, 2 insertions(+)
lib/dmadev/rte_dmadev_pmd.h +2 -0
@@ -14,6 +14,8 @@* by any application. */ +#include <rte_dev.h> +#include "rte_dmadev.h" #ifdef __cplusplus
Signature · 1 line
2.34.1
Quoted 6 lines · Thomas Monjalon
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)
Quoted 7 lines
The header file
rte_dev.hmust be included.Fixes b36970f2e13e ("dmadev: introduce DMA device library")Signed-off-by Thomas Monjalon <[email protected]>---
Thomas Monjalon
Applied22/02/2022 12:48, Bruce Richardson:
Quoted 7 lines · Thomas Monjalon
Quoted 6 lines
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)
Quoted 8 lines
Quoted 7 lines
The header file
rte_dev.hmust be included.Fixes b36970f2e13e ("dmadev: introduce DMA device library")Signed-off-by Thomas Monjalon <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Applied
Quoted 15 lines
From: Thomas Monjalon <[email protected]>
Sent: Tuesday 22 February 2022 11:41
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; [email protected]; Chengwen Feng <[email protected]>; Laatz, Kevin <[email protected]>; Morten Brørup <[email protected]>; Walsh, Conor <[email protected]>
Subject: [PATCH] dmadev: add missing header includeWhen 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)
Quoted 7 lines
The header file
rte_dev.hmust be included.Fixes b36970f2e13e ("dmadev: introduce DMA device library")Signed-off-by Thomas Monjalon <[email protected]>---