define MAP_SYNC on powerpc/powerpc64

Submitted by Samuel Holland on March 14, 2020, 5:31 a.m.

Details

Message ID 20200314053140.50283-1-samuel@sholland.org
State New
Series "define MAP_SYNC on powerpc/powerpc64"
Headers show

Commit Message

Samuel Holland March 14, 2020, 5:31 a.m.
Linux defines MAP_SYNC on powerpc and powerpc64 as of commit
22fcea6f85f2 ("mm: move MAP_SYNC to asm-generic/mman-common.h"),
so we can stop undefining it on those architectures.

--

This is currently breaking qemu compilation on powerpc64.

---
 arch/powerpc/bits/mman.h   | 1 -
 arch/powerpc64/bits/mman.h | 1 -
 2 files changed, 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/arch/powerpc/bits/mman.h b/arch/powerpc/bits/mman.h
index b3a675a8..95ec4358 100644
--- a/arch/powerpc/bits/mman.h
+++ b/arch/powerpc/bits/mman.h
@@ -4,7 +4,6 @@ 
 #define MAP_NORESERVE   0x40
 #undef MAP_LOCKED
 #define MAP_LOCKED	0x80
-#undef MAP_SYNC
 
 #undef MCL_CURRENT
 #define MCL_CURRENT     0x2000
diff --git a/arch/powerpc64/bits/mman.h b/arch/powerpc64/bits/mman.h
index b3a675a8..95ec4358 100644
--- a/arch/powerpc64/bits/mman.h
+++ b/arch/powerpc64/bits/mman.h
@@ -4,7 +4,6 @@ 
 #define MAP_NORESERVE   0x40
 #undef MAP_LOCKED
 #define MAP_LOCKED	0x80
-#undef MAP_SYNC
 
 #undef MCL_CURRENT
 #define MCL_CURRENT     0x2000

Comments

Rich Felker March 15, 2020, 1:39 a.m.
On Sat, Mar 14, 2020 at 12:31:40AM -0500, Samuel Holland wrote:
> Linux defines MAP_SYNC on powerpc and powerpc64 as of commit
> 22fcea6f85f2 ("mm: move MAP_SYNC to asm-generic/mman-common.h"),
> so we can stop undefining it on those architectures.
> 
> --
> 
> This is currently breaking qemu compilation on powerpc64.

Thanks, applying.

Rich