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: 40d4f51403 ("graph: implement fastpath routines")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
Bruce Richardson 2022-02-10 15:42:35 +00:00 committed by Thomas Monjalon
parent 153e7d8813
commit ca6732316c

View File

@ -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);