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 59038A0350; Fri, 4 Feb 2022 18:42:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4638A40E03; Fri, 4 Feb 2022 18:42:41 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 713C740E03 for ; Fri, 4 Feb 2022 18:42:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643996559; x=1675532559; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2hgcpc4graWtkEicx9y1HVphqZvw6xv3bbVZIf8uINg=; b=H8hUAizlIoRJHuopzMBhmAzj7ToZSpc1tJ9C+lRIpXa+Mp7FIjEmTH7O +5JOAaTYPX9bIc55pgFgDZaoT+sYrEqtUvIC04RxtJdKWzdrRcfY0xSDT Js7WUeFHsISYS1L5KTo2nd7Auloj2RwQ3EjYUsU1pvIMIU/vCu9tQ/rD/ 8vwQPQVzxqVhw/MCyqcJ+5R1/iC10ZfjhScaB9QRkrOd1gWyITLKzVvvL os7cC0uv5pdBQkxImmb5WLqypVEgXqIrA9pl3CtxJz3Vuzk7Wg1hz2Itq WSjcSvrO+7EglP/do6N+d7rfLUV6tWLqjQ+DFq/gJHCDRJPDQB+/tuAQN Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10248"; a="229060574" X-IronPort-AV: E=Sophos;i="5.88,343,1635231600"; d="scan'208";a="229060574" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2022 09:42:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,343,1635231600"; d="scan'208";a="620890366" Received: from silpixa00399126.ir.intel.com ([10.237.223.162]) by FMSMGA003.fm.intel.com with ESMTP; 04 Feb 2022 09:42:37 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Jerin Jacob , Kiran Kumar K , Nithin Dabilpuram Subject: [PATCH 3/7] graph: add explicit cast to allow C++ build Date: Fri, 4 Feb 2022 17:42:05 +0000 Message-Id: <20220204174209.440207-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220204174209.440207-1-bruce.richardson@intel.com> References: <20220204174209.440207-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 Signed-off-by: Bruce Richardson --- 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