Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: nommu: provide MAP_UNINITIALIZED definition

Add MAP_UNINITIALIZED to xtensa version of mman.h to keep mm/nommu.c
happy.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

+6
+6
arch/xtensa/include/uapi/asm/mman.h
··· 55 55 #define MAP_NONBLOCK 0x20000 /* do not block on IO */ 56 56 #define MAP_STACK 0x40000 /* give out an address that is best suited for process/thread stacks */ 57 57 #define MAP_HUGETLB 0x80000 /* create a huge page mapping */ 58 + #ifdef CONFIG_MMAP_ALLOW_UNINITIALIZED 59 + # define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be 60 + * uninitialized */ 61 + #else 62 + # define MAP_UNINITIALIZED 0x0 /* Don't support this flag */ 63 + #endif 58 64 59 65 /* 60 66 * Flags for msync