Skip to content

Commit

Permalink
graph: fix C++ include
Browse files Browse the repository at this point in the history
[ upstream commit ca67323 ]

C++ does not have automatic casting to/from void pointers, so need
explicit cast if header is to be included in C++ code

Fixes: 40d4f51 ("graph: implement fastpath routines")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
  • Loading branch information
bruce-richardson authored and kevintraynor committed Feb 21, 2022
1 parent 3668e54 commit 4f328f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graph/rte_graph_worker.h
Expand Up @@ -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);
Expand Down

0 comments on commit 4f328f8

Please sign in to comment.