From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 75691AAC4 for ; Fri, 18 May 2018 13:24:40 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D4EE222365; Fri, 18 May 2018 07:24:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 18 May 2018 07:24:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=mJWG9h/Yam6X2qxJ/O1KWoazrm bii/K3LR04P9WrDJk=; b=M3NAYB60mMdzGhM3UoWRkmpLMkS44dvvlHLPgPTdD2 AtEQuLY20HlYD7oggq5QJF7QxOlHoXBdIVBJwzzbEqjQugJWcTw+2c1UKKI19SSY OFsyrNME7GDgVA2THBnfxSmX5uy+L93/SpnkXu7E6b087Ek2YeqYITZmr5+BMlUP Q= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=mJWG9h /Yam6X2qxJ/O1KWoazrmbii/K3LR04P9WrDJk=; b=HkZIhO0xxfQtnHcGZfC6Wd XEORCQK8P6hKosazioklN8z+J8C4A1O3E+6ybAVx50zL5A4QncBRQ21G4SxDQBz3 F6KZ+cQ/NDV00qKoaCNVlSf804NdPNQj4B0ZS2A6TISQ3mYEoPsLS5GhO/bGIU/i W5pd7BRS15uSAl5Qap/UyHqPTMy7GMU70JyJeRDrnXyrW/ADXNHJRrKXP6jYSjVj hsyIf/Da8MmzuCxQvqnNiFywo1ySNMBbz8csh3zGNinnD0C5zNv+s1IwRAKug0v0 4rrWDXaYUhZnyL34fPkVqr5eexuDq0riB4pMw5wQbc1uldYxZZPyNpmEzRxrm9Hw == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 35C5BE49AD; Fri, 18 May 2018 07:24:39 -0400 (EDT) From: Thomas Monjalon To: David Marchand Cc: dev@dpdk.org, olivier.matz@6wind.com Date: Fri, 18 May 2018 13:24:37 +0200 Message-ID: <1600588.rlgGAYoWKD@xps> In-Reply-To: <1526469040-20860-1-git-send-email-david.marchand@6wind.com> References: <1526469040-20860-1-git-send-email-david.marchand@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] mbuf: properly cast shared data X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 11:24:40 -0000 16/05/2018 13:10, David Marchand: > Including rte_mbuf.h in C++ triggers the following warning as C++ does not > allow implicit casting of a void *. >=20 > In file included from test.cpp:1:0: > x86_64-native-linuxapp-gcc/include/rte_mbuf.h: In function > =E2=80=98rte_mbuf_ext_shared_info* rte_pktmbuf_ext_shinfo_init_helper(voi= d*, uint16_t*, > rte_mbuf_extbuf_free_callback_t, void*)=E2=80=99: > x86_64-native-linuxapp-gcc/include/rte_mbuf.h:1349:9: error: invalid conv= ersion > from =E2=80=98void*=E2=80=99 to =E2=80=98rte_mbuf_ext_shared_info*=E2=80= =99 [-fpermissive] > shinfo =3D RTE_PTR_ALIGN_FLOOR(RTE_PTR_SUB(buf_end, > ^ >=20 > Fixes: a53aa2b9f3be ("mbuf: support attaching external buffer") > Signed-off-by: David Marchand Applied, thanks