We can't really port it as the code kept changing
and it doesn't exist on older kernels, so just
disable it completely for now but print a warning.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
#include <linux/mm.h>
#include <linux/fb.h>
#include <linux/proc_fs.h>
+#include <linux/printk.h>
#define sg_page_iter_page LINUX_BACKPORT(sg_page_iter_page)
/**
*/
#define SOCK_SELECT_ERR_QUEUE (SOCK_QUEUE_SHRUNK + 14)
+/*
+ * DRM requires this, but we can't really backport it well
+ */
+static inline void __iomem *pci_platform_rom(struct pci_dev *pdev, size_t *size)
+{
+ printk(KERN_WARNING "compat: not providing pci_platform_rom!\n");
+ return NULL;
+}
+
#else /* kernel is >= 3.10 */
/*
* We'd delete this upstream ever got this, we use our