Skip to content

Commit 1624f34

Browse files
shemmingerdavid-marchand
authored andcommitted
dmadev: fix debug build with tracepoints
Missing definition of errnos causes build failure: In file included from ../lib/dmadev/rte_dmadev_trace.h:16, from ../lib/dmadev/rte_dmadev_trace_points.c:8: ../lib/dmadev/rte_dmadev.h: In function ‘rte_dma_copy’: ../lib/dmadev/rte_dmadev.h:1183:25: error: ‘EINVAL’ undeclared (first use in this function) 1183 | return -EINVAL; | ^~~~~~ Bugzilla ID: 1814 Fixes: 91e581e ("dmadev: add data plane API") Cc: [email protected] Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: Chengwen Feng <[email protected]>
1 parent ae84c34 commit 1624f34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/dmadev/rte_dmadev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
*/
146146

147147
#include <stdint.h>
148+
#include <errno.h>
148149

149150
#include <rte_bitops.h>
150151
#include <rte_common.h>

0 commit comments

Comments
 (0)