* [PATCH] dmadev: fix build if RTE_DMADEV_DEBUG enabled
@ 2025-10-27 16:46 Stephen Hemminger
2025-10-28 0:45 ` fengchengwen
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2025-10-27 16:46 UTC (permalink / raw)
To: dev
Cc: stable, Stephen Hemminger, david.marchand, Chengwen Feng,
Kevin Laatz, Bruce Richardson
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")
Cc: david.marchand@redhat.com
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
lib/dmadev/rte_dmadev.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h
index 0f4f10ec12..e3d7c9d0ca 100644
--- a/lib/dmadev/rte_dmadev.h
+++ b/lib/dmadev/rte_dmadev.h
@@ -145,6 +145,7 @@
*/
#include <stdint.h>
+#include <errno.h>
#include <rte_bitops.h>
#include <rte_common.h>
--
2.51.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] dmadev: fix build if RTE_DMADEV_DEBUG enabled
2025-10-27 16:46 [PATCH] dmadev: fix build if RTE_DMADEV_DEBUG enabled Stephen Hemminger
@ 2025-10-28 0:45 ` fengchengwen
0 siblings, 0 replies; 2+ messages in thread
From: fengchengwen @ 2025-10-28 0:45 UTC (permalink / raw)
To: Stephen Hemminger, dev
Cc: stable, david.marchand, Kevin Laatz, Bruce Richardson
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
On 10/28/2025 12:46 AM, Stephen Hemminger 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")
> Cc: david.marchand@redhat.com
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-28 0:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-27 16:46 [PATCH] dmadev: fix build if RTE_DMADEV_DEBUG enabled Stephen Hemminger
2025-10-28 0:45 ` fengchengwen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).