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>
dev != NULL; \
dev = rte_dev_iterator_next(it))
-#ifdef __cplusplus
-}
-#endif
-
/**
* @warning
* @b EXPERIMENTAL: this API may change without prior notice
rte_dev_dma_unmap(struct rte_device *dev, void *addr, uint64_t iova,
size_t len);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RTE_DEV_H_ */