From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT: include/linux/mod_devicetable.h

Change-Id: Ia771e29dc3aa903108943f2ff62c4a36951caf4b
---
 include/linux/mod_devicetable.h | 4 ++++
 1 file changed, 4 insertions(+)

--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -8,6 +8,8 @@
 #ifndef LINUX_MOD_DEVICETABLE_H
 #define LINUX_MOD_DEVICETABLE_H
 
+#include "../../compat/config.h"
+
 #ifdef __KERNEL__
 #include <linux/types.h>
 #include <linux/uuid.h>
@@ -45,7 +47,9 @@ struct pci_device_id {
 	__u32 subvendor, subdevice;	/* Subsystem ID's or PCI_ANY_ID */
 	__u32 class, class_mask;	/* (class,subclass,prog-if) triplet */
 	kernel_ulong_t driver_data;	/* Data private to the driver */
+#ifdef HAVE_VFIO_PCI_CORE_H
 	__u32 override_only;
+#endif
 };
 
 
