summaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2013-07-15 16:11:29 +0200
committerSuren A. Chilingaryan <csa@suren.me>2013-07-15 16:11:29 +0200
commit09a6aa6efc8657fddc29b160e7c350091404940f (patch)
tree055dd830f929719922aad81eace6a1c012d01f80 /driver
parentfda2d65fa7e38f0e30101bce657685a8c637cb13 (diff)
downloadpcitool-09a6aa6efc8657fddc29b160e7c350091404940f.tar.gz
pcitool-09a6aa6efc8657fddc29b160e7c350091404940f.tar.bz2
pcitool-09a6aa6efc8657fddc29b160e7c350091404940f.tar.xz
pcitool-09a6aa6efc8657fddc29b160e7c350091404940f.zip
Handle 3.7+ kernels which are missing VM_RESERVED flag
Diffstat (limited to 'driver')
-rw-r--r--driver/kmem.c5
1 files changed, 5 insertions, 0 deletions
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