mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
qemu: refresh patches to include git headers
Use git format-patch to be able to use git am later, to fix openwrt/openwrt#10272 . Remove patch to skip tests as not needed anymore. Then apply refresh. Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
This commit is contained in:
committed by
Josef Schlehofer
parent
40a439bfa8
commit
8ff1f55791
@@ -0,0 +1,48 @@
|
||||
From b2cd62027dbf41c3cd5354ed1a5f73c5e26b1811 Mon Sep 17 00:00:00 2001
|
||||
From: Yousong Zhou <yszhou4tech@gmail.com>
|
||||
Date: Mon, 30 Mar 2020 12:48:58 +0800
|
||||
Subject: [PATCH 2/4] util/mmap-alloc: fix missing MAP_SYNC
|
||||
|
||||
Quote musl-libc commit 9b57db3f958 ("add MAP_SYNC and
|
||||
MAP_SHARED_VALIDATE from linux v4.15")
|
||||
|
||||
> for synchronous page faults, new in linux commit
|
||||
> 1c9725974074a047f6080eecc62c50a8e840d050 and
|
||||
> b6fb293f2497a9841d94f6b57bd2bb2cd222da43
|
||||
> note that only targets that use asm-generic/mman.h have this new
|
||||
> flag defined, so undef it on other targets (mips*, powerpc*).
|
||||
|
||||
Fixes 119906afa5c ("util/mmap-alloc: support MAP_SYNC in
|
||||
qemu_ram_mmap()")
|
||||
|
||||
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
|
||||
---
|
||||
util/mmap-alloc.c | 10 +++++++---
|
||||
1 file changed, 7 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/util/mmap-alloc.c
|
||||
+++ b/util/mmap-alloc.c
|
||||
@@ -12,9 +12,6 @@
|
||||
|
||||
#ifdef CONFIG_LINUX
|
||||
#include <linux/mman.h>
|
||||
-#else /* !CONFIG_LINUX */
|
||||
-#define MAP_SYNC 0x0
|
||||
-#define MAP_SHARED_VALIDATE 0x0
|
||||
#endif /* CONFIG_LINUX */
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
@@ -57,6 +54,13 @@ QemuFsType qemu_fd_getfs(int fd)
|
||||
#endif
|
||||
}
|
||||
|
||||
+#ifndef MAP_SYNC
|
||||
+#define MAP_SYNC 0x0
|
||||
+#endif
|
||||
+#ifndef MAP_SHARED_VALIDATE
|
||||
+#define MAP_SHARED_VALIDATE 0x0
|
||||
+#endif
|
||||
+
|
||||
size_t qemu_fd_getpagesize(int fd)
|
||||
{
|
||||
#ifdef CONFIG_LINUX
|
||||
Reference in New Issue
Block a user