]> git.droids-corp.org - dpdk.git/commitdiff
graph: fix C++ include
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 10 Feb 2022 15:42:35 +0000 (15:42 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 10 Feb 2022 22:05:32 +0000 (23:05 +0100)
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: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
lib/graph/rte_graph_worker.h

index eef77f732adc1234dfce194cd68ff4ccbb88628b..0c0b9c095adfe50ba53244a59e738fb5c2fd3cf9 100644 (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);