From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT: drivers/vfio/pci/mlx5/cmd.h

Change-Id: Ib4cb9789a124419edc92267a67ebbd4e1a80aff2
---
 drivers/vfio/pci/mlx5/cmd.h | 2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/vfio/pci/mlx5/cmd.h
+++ b/drivers/vfio/pci/mlx5/cmd.h
@@ -6,6 +6,7 @@
 #ifndef MLX5_VFIO_CMD_H
 #define MLX5_VFIO_CMD_H
 
+#ifdef HAVE_VFIO_SUPPORT
 #include <linux/kernel.h>
 #include <linux/vfio_pci_core.h>
 #include <linux/mlx5/driver.h>
@@ -237,4 +238,5 @@ int mlx5vf_start_page_tracker(struct vfi
 int mlx5vf_stop_page_tracker(struct vfio_device *vdev);
 int mlx5vf_tracker_read_and_clear(struct vfio_device *vdev, unsigned long iova,
 			unsigned long length, struct iova_bitmap *dirty);
+#endif /* HAVE_VFIO_SUPPORT */
 #endif /* MLX5_VFIO_CMD_H */
