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

parisc: Add MAP_UNINITIALIZED define

We will not allow unitialized anon mmaps, but we need this define
to prevent build errors, e.g. the debian foot package.

Suggested-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>

+1 -1
+1
arch/parisc/include/uapi/asm/mman.h
··· 25 25 #define MAP_STACK 0x40000 /* give out an address that is best suited for process/thread stacks */ 26 26 #define MAP_HUGETLB 0x80000 /* create a huge page mapping */ 27 27 #define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED which doesn't unmap underlying mapping */ 28 + #define MAP_UNINITIALIZED 0 /* uninitialized anonymous mmap */ 28 29 29 30 #define MS_SYNC 1 /* synchronous memory sync */ 30 31 #define MS_ASYNC 2 /* sync memory asynchronously */
-1
tools/arch/parisc/include/uapi/asm/mman.h
··· 39 39 #define MADV_SOFT_OFFLINE 101 40 40 /* MAP_32BIT is undefined on parisc, fix it for perf */ 41 41 #define MAP_32BIT 0 42 - /* MAP_UNINITIALIZED is undefined on parisc, fix it for perf */ 43 42 #define MAP_UNINITIALIZED 0 44 43 #endif