summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/mman.h
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/asm/mman.h
parentc4caa778157dbbf04116f0ac2111e389b5cd7a29 (diff)
downloadblackbird-op-linux-2ea1d13f64efdf49319e86c87d9ba38c30902782.tar.gz
blackbird-op-linux-2ea1d13f64efdf49319e86c87d9ba38c30902782.zip
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/asm/mman.h')
-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 8eebf89f5ab1..41f99c573b93 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