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 E43C2A0503; Fri, 6 May 2022 19:41:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8572740395; Fri, 6 May 2022 19:41:32 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id C06654014F for ; Fri, 6 May 2022 19:41:30 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH] rte_dev: allow C-symbol-in-C++ dma operations Date: Fri, 6 May 2022 19:41:26 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87046@smartserver.smartshare.dk> In-Reply-To: <20220505043935.GA312259@cth-desktop-dorm.onozuka.cth451.me> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] rte_dev: allow C-symbol-in-C++ dma operations Thread-Index: AdhgOiTWYx+GnDWzSHeGd+Bj0vU00wBNknUA References: <20220505043935.GA312259@cth-desktop-dorm.onozuka.cth451.me> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Tianhao Chai" , 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 > From: Tianhao Chai [mailto:cth451@gmail.com] > Sent: Thursday, 5 May 2022 06.40 > To: dev@dpdk.org > Cc: Tianhao Chai > Subject: [PATCH] rte_dev: allow C-symbol-in-C++ dma operations >=20 > Currently the "extern C" section ends right before rte_dev_dma_unmap > and other DMA function declarations, causing some C++ compilers to > produce C++ mangled symbols to rte_dev_dma_unmap instead of C symbols. > This leads to build failures later when linking a final executable > against this object. >=20 > The issue is observed on DPDK 22.03 and G++ 11. >=20 > Signed-off-by: Tianhao Chai > --- Acked-by: Morten Br=F8rup