summaryrefslogtreecommitdiff
path: root/arch/arm/include/uapi/asm/mman.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-10-12 13:05:52 +0100
committerDavid Howells <dhowells@redhat.com>2012-10-12 13:05:52 +0100
commitcb8db5d4578ac9d996200ab59aa655344d305f5b (patch)
tree32b71e0686a2c56b9390bdc47b3e0e0ab5552212 /arch/arm/include/uapi/asm/mman.h
parent4f1cd91497774488ed16119ec3f54b3daf1561de (diff)
downloadlwn-cb8db5d4578ac9d996200ab59aa655344d305f5b.tar.gz
lwn-cb8db5d4578ac9d996200ab59aa655344d305f5b.zip
UAPI: (Scripted) Disintegrate arch/arm/include/asm
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/arm/include/uapi/asm/mman.h')
-rw-r--r--arch/arm/include/uapi/asm/mman.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/uapi/asm/mman.h b/arch/arm/include/uapi/asm/mman.h
new file mode 100644
index 000000000000..41f99c573b93
--- /dev/null
+++ b/arch/arm/include/uapi/asm/mman.h
@@ -0,0 +1,4 @@
+#include <asm-generic/mman.h>
+
+#define arch_mmap_check(addr, len, flags) \
+ (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0)