[PATCH] dmadev: fix build if RTE_DMADEV_DEBUG enabled

Stephen Hemminger stephen at networkplumber.org
Wed Oct 29 15:32:15 CET 2025


On Wed, 29 Oct 2025 14:48:13 +0100
David Marchand <david.marchand at redhat.com> wrote:

> On Mon, 27 Oct 2025 at 17:46, Stephen Hemminger
> <stephen at networkplumber.org> wrote:
> >
> > 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: 8f1d23ece06a ("eal: deprecate RTE_FUNC_PTR_* macros")  
> 
> I am not following the rationale... 8f1d23ece06a removed a macro but
> use of errno was already there, so I am skeptical this is the right
> Fixes: tag.
> 
> The issue was present from the start, so:
> Fixes: 91e581e5c924 ("dmadev: add data plane API")
> 
> > Cc: david.marchand at redhat.com
> >
> > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>  
> 
> 

Yes, the fixes tag is incorrect. The issue probably goes back further
in time. Might be related to tracepoints not including errno.h


More information about the stable mailing list