Skip to content

Commit 4a770b4

Browse files
committed
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 parent f173e3a commit 4a770b4

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

  • arch/parisc/include/uapi/asm
  • tools/arch/parisc/include/uapi/asm

arch/parisc/include/uapi/asm/mman.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define MAP_STACK 0x40000 /* give out an address that is best suited for process/thread stacks */
2626
#define MAP_HUGETLB 0x80000 /* create a huge page mapping */
2727
#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED which doesn't unmap underlying mapping */
28+
#define MAP_UNINITIALIZED 0 /* uninitialized anonymous mmap */
2829

2930
#define MS_SYNC 1 /* synchronous memory sync */
3031
#define MS_ASYNC 2 /* sync memory asynchronously */

tools/arch/parisc/include/uapi/asm/mman.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,5 @@
3939
#define MADV_SOFT_OFFLINE 101
4040
/* MAP_32BIT is undefined on parisc, fix it for perf */
4141
#define MAP_32BIT 0
42-
/* MAP_UNINITIALIZED is undefined on parisc, fix it for perf */
4342
#define MAP_UNINITIALIZED 0
4443
#endif

0 commit comments

Comments
 (0)