summaryrefslogtreecommitdiff
path: root/lib/graph
diff options
context:
space:
mode:
authorBruce Richardson <[email protected]>2022-02-10 15:42:35 +0000
committerThomas Monjalon <[email protected]>2022-02-10 23:05:32 +0100
commitca6732316c23e158da10b0e3a7b2eaab9d3e1368 (patch)
tree8b7993ebe572a0c3df8fbb8f35be4224942ab94d /lib/graph
parent153e7d88133cf30e6a042e92dcc6a8a0acfe7a62 (diff)
graph: fix C++ include
C++ does not have automatic casting to/from void pointers, so need explicit cast if header is to be included in C++ code Fixes: 40d4f51403ec ("graph: implement fastpath routines") Cc: [email protected] Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Jerin Jacob <[email protected]>
Diffstat (limited to 'lib/graph')
-rw-r--r--lib/graph/rte_graph_worker.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/graph/rte_graph_worker.h b/lib/graph/rte_graph_worker.h
index eef77f732a..0c0b9c095a 100644
--- a/lib/graph/rte_graph_worker.h
+++ b/lib/graph/rte_graph_worker.h
@@ -155,7 +155,7 @@ rte_graph_walk(struct rte_graph *graph)
* +-----+ <= cir_start + mask
*/
while (likely(head != graph->tail)) {
- node = RTE_PTR_ADD(graph, cir_start[(int32_t)head++]);
+ node = (struct rte_node *)RTE_PTR_ADD(graph, cir_start[(int32_t)head++]);
RTE_ASSERT(node->fence == RTE_GRAPH_FENCE);
objs = node->objs;
rte_prefetch0(objs);