From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 31BACA00BE; Thu, 10 Feb 2022 16:43:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8CD6D42757; Thu, 10 Feb 2022 16:43:10 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 7D902426ED; Thu, 10 Feb 2022 16:43:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644507787; x=1676043787; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dBD+GspqG2no2kAvYJxoW+EbbsTf0E3yomllcbb7Cf0=; b=Us1nRQaDHiuC2Kim6IpaJ3ylGQKWiTqsMjncPLD/OF+sPHRlfGcABLUG k1ABIXtDkQde3XACiwg+AHbws9PXN2UD/x+iPMbWFWbHaVcCXdZ5O0xcJ 7EXrkZrj8On80c6LQ8uZFNWHEyXwxZwTkL5m63+nNkjSPIlj+QvWHNP03 ZX7u+yLLPal+KVyXEJvRkbRnEnC/1W2hZgedFDpnGL9/RDGVe8fb7NSOY 0ZK3h6lIq/hLbLmbXPvRBWoOBHN/NXkleiePrAZMoC9Z8NyI1Wg6mhouf 11mlKfIhOJ/4FmfXdYe6TXh39OE9Yndk1kouXJ5i8/GsvTpeQnMyNVbrm A==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="247101133" X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="247101133" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 07:42:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="485723415" Received: from silpixa00399126.ir.intel.com ([10.237.223.162]) by orsmga006.jf.intel.com with ESMTP; 10 Feb 2022 07:42:55 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , jerinj@marvell.com, stable@dpdk.org, Nithin Dabilpuram , Kiran Kumar K , Pavan Nikhilesh Subject: [PATCH v4 3/7] graph: fix missing explicit cast for C++ build Date: Thu, 10 Feb 2022 15:42:35 +0000 Message-Id: <20220210154239.587185-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210154239.587185-1-bruce.richardson@intel.com> References: <20220204174209.440207-1-bruce.richardson@intel.com> <20220210154239.587185-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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: jerinj@marvell.com Cc: stable@dpdk.org Signed-off-by: Bruce Richardson Acked-by: Jerin Jacob --- lib/graph/rte_graph_worker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.32.0