[dpdk-dev] [PATCH] vfio: fix headers to include C++ support

Anatoly Burakov anatoly.burakov at intel.com
Thu Feb 22 18:13:59 CET 2018


Fixes: 279b581c897d ("vfio: expose functions")
Cc: gaetan.rivet at 6wind.com
Cc: stable at dpdk.org

Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
 lib/librte_eal/common/include/rte_vfio.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/librte_eal/common/include/rte_vfio.h b/lib/librte_eal/common/include/rte_vfio.h
index e981a62..249095e 100644
--- a/lib/librte_eal/common/include/rte_vfio.h
+++ b/lib/librte_eal/common/include/rte_vfio.h
@@ -28,6 +28,10 @@
 #define VFIO_NOIOMMU_MODE      \
 	"/sys/module/vfio/parameters/enable_unsafe_noiommu_mode"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * Setup vfio_cfg for the device identified by its address.
  * It discovers the configured I/O MMU groups or sets a new one for the device.
@@ -123,6 +127,10 @@ int rte_vfio_noiommu_is_enabled(void);
 int
 rte_vfio_clear_group(int vfio_group_fd);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* VFIO_PRESENT */
 
 #endif /* _RTE_VFIO_H_ */
-- 
2.7.4


More information about the dev mailing list