diff mbox series

[uclibc-ng-devel] riscv: add the MAP_UNINITIALIZED definition

Message ID 20190624133737.GA18527@infradead.org
State Accepted
Headers show
Series [uclibc-ng-devel] riscv: add the MAP_UNINITIALIZED definition | expand

Commit Message

Christoph Hellwig June 24, 2019, 1:37 p.m. UTC
From: Christoph Hellwig <hch@lst.de>

This avoids a nommu build failure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 libc/sysdeps/linux/riscv64/bits/mman.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Waldemar Brodkorb July 5, 2019, 12:50 p.m. UTC | #1
Hi,

both patches applied,
 Waldemar

Christoph Hellwig wrote,

> From: Christoph Hellwig <hch@lst.de>
> 
> This avoids a nommu build failure.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  libc/sysdeps/linux/riscv64/bits/mman.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libc/sysdeps/linux/riscv64/bits/mman.h b/libc/sysdeps/linux/riscv64/bits/mman.h
> index 316f87d99..fa6f8e6a0 100644
> --- a/libc/sysdeps/linux/riscv64/bits/mman.h
> +++ b/libc/sysdeps/linux/riscv64/bits/mman.h
> @@ -31,6 +31,7 @@
>  # define MAP_HUGETLB	0x40000		/* Create huge page mapping.  */
>  # define MAP_SYNC	0x80000		/* Perform synchronous page
>  					   faults for the mapping.  */
> +# define MAP_UNINITIALIZED 0x4000000    /* For anonymous mmap, memory could -   					   be uninitialized.  */
>  #endif
>  
>  /* Include generic Linux declarations.  */
> -- 
> 2.20.1
> 
> _______________________________________________
> devel mailing list
> devel@uclibc-ng.org
> https://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel
diff mbox series

Patch

diff --git a/libc/sysdeps/linux/riscv64/bits/mman.h b/libc/sysdeps/linux/riscv64/bits/mman.h
index 316f87d99..fa6f8e6a0 100644
--- a/libc/sysdeps/linux/riscv64/bits/mman.h
+++ b/libc/sysdeps/linux/riscv64/bits/mman.h
@@ -31,6 +31,7 @@ 
 # define MAP_HUGETLB	0x40000		/* Create huge page mapping.  */
 # define MAP_SYNC	0x80000		/* Perform synchronous page
 					   faults for the mapping.  */
+# define MAP_UNINITIALIZED 0x4000000    /* For anonymous mmap, memory could -   					   be uninitialized.  */
 #endif
 
 /* Include generic Linux declarations.  */