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 F35D9A04FF; Thu, 5 May 2022 11:43:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9FADC40C35; Thu, 5 May 2022 11:43:50 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id AC6FC40042 for ; Thu, 5 May 2022 11:43:48 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id C592520EB212; Thu, 5 May 2022 02:43:47 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C592520EB212 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1651743827; bh=M86NfWW1IxNAjPb3iM5QSZm9tnm/sl611wjtXXcmQp8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XmVZdHMJNswqX8K30Edmyqi44vmxqt/MfWAi47Xy59vLIqiomjnjTH7x9WBjBbFwW nJTb49PILXG8m7Z5zYiiXD7gOzVo70MLfM4sZ8TjGRiM0A+L+SV/QFP+ZCbOw133E6 nrNoW0BnP4/StH3i6OILbRcsMwG9tirIMF4YFf7s= Date: Thu, 5 May 2022 02:43:47 -0700 From: Tyler Retzlaff To: Tianhao Chai Cc: dev@dpdk.org Subject: Re: [PATCH] rte_dev: allow C-symbol-in-C++ dma operations Message-ID: <20220505094347.GA19924@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20220505043935.GA312259@cth-desktop-dorm.onozuka.cth451.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220505043935.GA312259@cth-desktop-dorm.onozuka.cth451.me> User-Agent: Mutt/1.5.21 (2010-09-15) 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 On Wed, May 04, 2022 at 11:39:35PM -0500, Tianhao Chai wrote: > 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. > > The issue is observed on DPDK 22.03 and G++ 11. > > Signed-off-by: Tianhao Chai Acked-by: Tyler Retzlaff