RE: [PATCH] rte_dev: allow C-symbol-in-C++ dma operations

2022-05-06 Thread Morten Brørup
> From: Tianhao Chai [mailto:cth...@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 > > Currently the "extern C" section ends right before rte_dev_dma_unmap > a

Re: [PATCH] rte_dev: allow C-symbol-in-C++ dma operations

2022-05-05 Thread David Marchand
On Thu, May 5, 2022 at 11:00 AM Bruce Richardson wrote: > 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

Re: [PATCH] rte_dev: allow C-symbol-in-C++ dma operations

2022-05-05 Thread Tyler Retzlaff
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 fa

Re: [PATCH] rte_dev: allow C-symbol-in-C++ dma operations

2022-05-05 Thread Bruce Richardson
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 fa

[PATCH] rte_dev: allow C-symbol-in-C++ dma operations

2022-05-04 Thread Tianhao Chai
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