diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2013-07-15 16:11:29 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2013-07-15 16:11:29 +0200 |
commit | 09a6aa6efc8657fddc29b160e7c350091404940f (patch) | |
tree | 055dd830f929719922aad81eace6a1c012d01f80 /driver | |
parent | fda2d65fa7e38f0e30101bce657685a8c637cb13 (diff) | |
download | ipecamera-09a6aa6efc8657fddc29b160e7c350091404940f.tar.gz ipecamera-09a6aa6efc8657fddc29b160e7c350091404940f.tar.bz2 ipecamera-09a6aa6efc8657fddc29b160e7c350091404940f.tar.xz ipecamera-09a6aa6efc8657fddc29b160e7c350091404940f.zip |
Handle 3.7+ kernels which are missing VM_RESERVED flag
Diffstat (limited to 'driver')
-rw-r--r-- | driver/kmem.c | 5 |
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 |