From 09a6aa6efc8657fddc29b160e7c350091404940f Mon Sep 17 00:00:00 2001
From: "Suren A. Chilingaryan" <csa@suren.me>
Date: Mon, 15 Jul 2013 16:11:29 +0200
Subject: Handle 3.7+ kernels which are missing VM_RESERVED flag

---
 driver/kmem.c | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'driver')

diff --git a/driver/kmem.c b/driver/kmem.c
index 37a7368..0da37bb 100644
--- a/driver/kmem.c
+++ b/driver/kmem.c
@@ -24,6 +24,11 @@
 #include "kmem.h"			/* prototypes for kernel memory */
 #include "sysfs.h"			/* prototypes for sysfs */
 
+/* VM_RESERVED is removed in 3.7-rc1 */
+#ifndef VM_RESERVED
+# define  VM_RESERVED   (VM_DONTEXPAND | VM_DONTDUMP)
+#endif
+
 /**
  *
  * Allocates new kernel memory including the corresponding management structure, makes
-- 
cgit v1.2.3