Arnd Bergmann | 6e17b17 | 2009-09-21 17:03:48 -0700 | [diff] [blame] | 1 | #include <asm-generic/mman.h> |
Al Viro | 564b3bf | 2009-11-30 17:00:51 -0500 | [diff] [blame] | 2 | |
3 | #define MIN_MAP_ADDR PAGE_SIZE /* minimum fixed mmap address */ | ||||
4 | |||||
5 | #define arch_mmap_check(addr, len, flags) \ | ||||
6 | (((flags) & MAP_FIXED && (addr) < MIN_MAP_ADDR) ? -EINVAL : 0) |