eal: fix C++ include for device event and DMA
authorTianhao Chai <cth451@gmail.com>
Thu, 5 May 2022 04:39:35 +0000 (23:39 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 5 May 2022 09:48:33 +0000 (11:48 +0200)
commit28c5d600723a9bb384a4b2f79bf6af8c40950bba
tree07fb05e7cd565774f71a484ffec2bb261c689658
parent4d8bdd8b56a102fbe7d8ca167d5044625f4dbb32
eal: fix C++ include for device event and DMA

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.

Fixes: a753e53d517b ("eal: add device event monitor framework")
Cc: stable@dpdk.org
Signed-off-by: Tianhao Chai <cth451@gmail.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
lib/eal/include/rte_dev.h