[PATCH] rte_dev: allow C-symbol-in-C++ dma operations
Morten Brørup
mb at smartsharesystems.com
Fri May 6 19:41:26 CEST 2022
> From: Tianhao Chai [mailto:cth451 at gmail.com]
> Sent: Thursday, 5 May 2022 06.40
> To: dev at 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
> 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 <cth451 at gmail.com>
> ---
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list