Skip to contentSkip to conversation

dmadev: add missing header include

PATCH In review Thomas Monjalon 3 participants 4 messages Feb 22, 2022

lore
Share & tools
lore
#0 lore raw

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.

Fixes b36970f2e13e ("dmadev: introduce DMA device library")
---
 lib/dmadev/rte_dmadev_pmd.h | 2 ++
 1 file changed, 2 insertions(+)
lib/dmadev/rte_dmadev_pmd.h +2 -0
index 5316ad5b5f..82ab7a8cc7 100644
@@ -14,6 +14,8 @@
  * by any application.
  */
 
+#include <rte_dev.h>
+
 #include "rte_dmadev.h"
 
 #ifdef __cplusplus
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
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.h must be included.

Fixes b36970f2e13e ("dmadev: introduce DMA device library")

---

author Applied
#2 lore raw

22/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.h must be included.

Fixes b36970f2e13e ("dmadev: introduce DMA device library")

---

Applied

Acked-by on v1 1/1
#3 lore raw
In reply to Thomas Monjalon
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 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)

Quoted 7 lines

The header file rte_dev.h must be included.

Fixes b36970f2e13e ("dmadev: introduce DMA device library")

---