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 82359A00C2; Thu, 10 Feb 2022 13:03:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B57D426EE; Thu, 10 Feb 2022 13:03:42 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 86FF6426E7; Thu, 10 Feb 2022 13:03:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644494620; x=1676030620; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dBD+GspqG2no2kAvYJxoW+EbbsTf0E3yomllcbb7Cf0=; b=k6VkVaQZto6qJKx7uJeFxlBX7uGT5r+/4mlXrc42IwUPHhwVwep8Ihfq vu8VMRyo/+UUyT1s+M6kOYDIYaVaihulU71tMbKQco43I5aAJdvK4zKqx VpJDA1FyEdmFra+gFfSUxJKO5G/KB+OiX1sII9DSoIPEMcVuYWPm81Imv DEW2AtOuneJi0bIj5ceg/E3dcNiAjocvHA2JYMrgI+dgEiFIQvnBi84Xf iRPUqu3btJsDMt8u7jNXGO/eQw3JQhLeBpT/pU4SGJ8WOSQ6QoHZiotB2 vXcqaGQ6mcK19oxKFwoMie1RWjFZ3n4EoybxyWpo1AnQhJtH6Aa6IG8t1 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10253"; a="230121062" X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="230121062" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 04:03:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="622658281" Received: from silpixa00399126.ir.intel.com ([10.237.223.162]) by FMSMGA003.fm.intel.com with ESMTP; 10 Feb 2022 04:03:38 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , jerinj@marvell.com, stable@dpdk.org, Pavan Nikhilesh , Kiran Kumar K , Nithin Dabilpuram Subject: [PATCH v2 3/7] graph: fix missing explicit cast for C++ build Date: Thu, 10 Feb 2022 12:02:53 +0000 Message-Id: <20220210120257.585822-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210120257.585822-1-bruce.richardson@intel.com> References: <20220204174209.440207-1-bruce.richardson@intel.com> <20220210120257.585822-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