#include <linux/scatterlist.h>
#include <linux/mm.h>
#include <linux/fb.h>
+#include <linux/proc_fs.h>
#define sg_page_iter_page LINUX_BACKPORT(sg_page_iter_page)
/**
#define ETH_P_802_3_MIN 0x0600
#endif
+/*
+ * backport of:
+ * procfs: new helper - PDE_DATA(inode)
+ */
+static inline void *PDE_DATA(const struct inode *inode)
+{
+ return PROC_I(inode)->pde->data;
+}
+
#else /* kernel is >= 3.10 */
/*
* We'd delete this upstream ever got this, we use our
{
info->skip_vt_switch = true;
}
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)) */
#endif /* LINUX_3_10_COMPAT_H */