summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-11-30 13:06:51 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2009-12-11 06:34:09 -0500
commit2ea1d13f64efdf49319e86c87d9ba38c30902782 (patch)
treeb55064cc0deb54ce23cc08208c54b31ca9e7b20a /arch/arm/include
parentc4caa778157dbbf04116f0ac2111e389b5cd7a29 (diff)
downloadop-kernel-dev-2ea1d13f64efdf49319e86c87d9ba38c30902782.zip
op-kernel-dev-2ea1d13f64efdf49319e86c87d9ba38c30902782.tar.gz
arm: add arch_mmap_check(), get rid of sys_arm_mremap()
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/mman.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mman.h b/arch/arm/include/asm/mman.h
index 8eebf89..41f99c5 100644
--- a/arch/arm/include/asm/mman.h
+++ b/arch/arm/include/asm/mman.h
@@ -1 +1,4 @@
#include <asm-generic/mman.h>
+
+#define arch_mmap_check(addr, len, flags) \
+ (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0)
OpenPOWER on IntegriCloud