xtensa: nommu: provide MAP_UNINITIALIZED definition
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 22 Sep 2014 02:44:41 +0000 (06:44 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 21 Oct 2014 09:28:47 +0000 (13:28 +0400)
Add MAP_UNINITIALIZED to xtensa version of mman.h to keep mm/nommu.c
happy.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/uapi/asm/mman.h

index 00eed67..201aec0 100644 (file)
 #define MAP_NONBLOCK   0x20000         /* do not block on IO */
 #define MAP_STACK      0x40000         /* give out an address that is best suited for process/thread stacks */
 #define MAP_HUGETLB    0x80000         /* create a huge page mapping */
+#ifdef CONFIG_MMAP_ALLOW_UNINITIALIZED
+# define MAP_UNINITIALIZED 0x4000000   /* For anonymous mmap, memory could be
+                                        * uninitialized */
+#else
+# define MAP_UNINITIALIZED 0x0         /* Don't support this flag */
+#endif
 
 /*
  * Flags for msync