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

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

--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -8,10 +8,15 @@
 #ifndef LINUX_MOD_DEVICETABLE_H
 #define LINUX_MOD_DEVICETABLE_H
 
+#include "../../compat/config.h"
+
 #ifdef __KERNEL__
 #include <linux/mei.h>
 #include <linux/types.h>
 #include <linux/uuid.h>
+#ifdef HAVE_LINUX_MEI_UUID_H
+#include <uapi/linux/mei_uuid.h>
+#endif
 typedef unsigned long kernel_ulong_t;
 #endif
 
@@ -46,7 +51,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
 };
 
 
