DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Roland Hieber <r.hieber@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Roland Hieber <r.hieber@pengutronix.de>
Subject: [DistroKit] [PATCH] qemu: remove leftover patches
Date: Thu, 31 May 2018 12:03:34 +0200	[thread overview]
Message-ID: <20180531100334.24815-1-r.hieber@pengutronix.de> (raw)

With PTXdist 2018.05, qemu was bumped to version 2.11.1, so those
patches are no longer applied.

- 0001-virtfs-proxy-helper-make-sure-sys-xattr.h-is-include.patch:
  unclear if still needed, but qemu now builds fine without it. (Someone
  should to check whether we still have an "older glibc".) In any case
  this patch should be applied in upstream PTXdist if needed.
- 0002-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.patch:
  applied in upstream qemu-2.11, commit 8573378e62d19e25a2434e
- 0003-memfd-fix-configure-test.patch:
  applied in upstream ptxdist-2018.04.0, commit 99f897ba09b9d1528a4b

Fixes: 22ae0f6 ("ptxdist: version bump 2018.03.0 -> 2018.05.0")
Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
---
 ...per-make-sure-sys-xattr.h-is-include.patch | 37 -------------
 ...f-bounds-check-for-multi-block-reads.patch | 50 -----------------
 .../0003-memfd-fix-configure-test.patch       | 53 -------------------
 patches/qemu-2.10.1/series                    |  6 ---
 4 files changed, 146 deletions(-)
 delete mode 100644 patches/qemu-2.10.1/0001-virtfs-proxy-helper-make-sure-sys-xattr.h-is-include.patch
 delete mode 100644 patches/qemu-2.10.1/0002-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.patch
 delete mode 100644 patches/qemu-2.10.1/0003-memfd-fix-configure-test.patch
 delete mode 100644 patches/qemu-2.10.1/series

diff --git a/patches/qemu-2.10.1/0001-virtfs-proxy-helper-make-sure-sys-xattr.h-is-include.patch b/patches/qemu-2.10.1/0001-virtfs-proxy-helper-make-sure-sys-xattr.h-is-include.patch
deleted file mode 100644
index 809a475..0000000
--- a/patches/qemu-2.10.1/0001-virtfs-proxy-helper-make-sure-sys-xattr.h-is-include.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-Date: Tue, 12 Jul 2016 09:20:19 +0200
-Subject: [PATCH] virtfs-proxy-helper: make sure sys/xattr.h is included first
-
-Otherwise building with older glibc versions fails with:
-
-In file included from [...]/include/qemu/xattr.h:26:0,
-                 from fsdev/virtfs-proxy-helper.c:26:
-/usr/include/i386-linux-gnu/sys/xattr.h:32:3: error: expected identifier before numeric constant
-make[1]: *** [fsdev/virtfs-proxy-helper.o] Error 1
-make[1]: *** Waiting for unfinished jobs....
-
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
----
- fsdev/virtfs-proxy-helper.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
-index 6c066ec9a0ce..dd1801ce8589 100644
---- a/fsdev/virtfs-proxy-helper.c
-+++ b/fsdev/virtfs-proxy-helper.c
-@@ -9,6 +9,7 @@
-  * the COPYING file in the top-level directory.
-  */
- 
-+#include "qemu/xattr.h"
- #include "qemu/osdep.h"
- #include <sys/resource.h>
- #include <getopt.h>
-@@ -23,7 +24,6 @@
- #endif
- #include "qemu-common.h"
- #include "qemu/sockets.h"
--#include "qemu/xattr.h"
- #include "9p-iov-marshal.h"
- #include "hw/9pfs/9p-proxy.h"
- #include "fsdev/9p-iov-marshal.h"
diff --git a/patches/qemu-2.10.1/0002-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.patch b/patches/qemu-2.10.1/0002-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.patch
deleted file mode 100644
index d29493d..0000000
--- a/patches/qemu-2.10.1/0002-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-Date: Fri, 6 Oct 2017 16:46:47 +0100
-Subject: [PATCH] hw/sd: fix out-of-bounds check for multi block reads
-
-The current code checks if the next block exceeds the size of the card.
-This generates an error while reading the last block of the card.
-Do the out-of-bounds check when starting to read a new block to fix this.
-
-This issue became visible with increased error checking in Linux 4.13.
-
-Cc: qemu-stable@nongnu.org
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
-Message-id: 20170916091611.10241-1-m.olbrich@pengutronix.de
-Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
----
- hw/sd/sd.c | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/hw/sd/sd.c b/hw/sd/sd.c
-index ba47bff4db80..35347a5bbcde 100644
---- a/hw/sd/sd.c
-+++ b/hw/sd/sd.c
-@@ -1797,8 +1797,13 @@ uint8_t sd_read_data(SDState *sd)
-         break;
- 
-     case 18:	/* CMD18:  READ_MULTIPLE_BLOCK */
--        if (sd->data_offset == 0)
-+        if (sd->data_offset == 0) {
-+            if (sd->data_start + io_len > sd->size) {
-+                sd->card_status |= ADDRESS_ERROR;
-+                return 0x00;
-+            }
-             BLK_READ_BLOCK(sd->data_start, io_len);
-+        }
-         ret = sd->data[sd->data_offset ++];
- 
-         if (sd->data_offset >= io_len) {
-@@ -1812,11 +1817,6 @@ uint8_t sd_read_data(SDState *sd)
-                     break;
-                 }
-             }
--
--            if (sd->data_start + io_len > sd->size) {
--                sd->card_status |= ADDRESS_ERROR;
--                break;
--            }
-         }
-         break;
- 
diff --git a/patches/qemu-2.10.1/0003-memfd-fix-configure-test.patch b/patches/qemu-2.10.1/0003-memfd-fix-configure-test.patch
deleted file mode 100644
index 760bb97..0000000
--- a/patches/qemu-2.10.1/0003-memfd-fix-configure-test.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From: Paolo Bonzini <pbonzini@redhat.com>
-Date: Tue, 28 Nov 2017 10:51:27 +0100
-Subject: [PATCH] memfd: fix configure test
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-memfd: fix configure test
-
-Recent glibc added memfd_create in sys/mman.h.  This conflicts with
-the definition in util/memfd.c:
-
-    /builddir/build/BUILD/qemu-2.11.0-rc1/util/memfd.c:40:12: error: static declaration of memfd_create follows non-static declaration
-
-Fix the configure test, and remove the sys/memfd.h inclusion since the
-file actually does not exist---it is a typo in the memfd_create(2) man
-page.
-
-Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
-Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
----
- configure    | 2 +-
- util/memfd.c | 4 +---
- 2 files changed, 2 insertions(+), 4 deletions(-)
-
-diff --git a/configure b/configure
-index dd73cce62f9d..53581d787dac 100755
---- a/configure
-+++ b/configure
-@@ -3855,7 +3855,7 @@ fi
- # check if memfd is supported
- memfd=no
- cat > $TMPC << EOF
--#include <sys/memfd.h>
-+#include <sys/mman.h>
- 
- int main(void)
- {
-diff --git a/util/memfd.c b/util/memfd.c
-index 4571d1aba866..412e94a405fc 100644
---- a/util/memfd.c
-+++ b/util/memfd.c
-@@ -31,9 +31,7 @@
- 
- #include "qemu/memfd.h"
- 
--#ifdef CONFIG_MEMFD
--#include <sys/memfd.h>
--#elif defined CONFIG_LINUX
-+#if defined CONFIG_LINUX && !defined CONFIG_MEMFD
- #include <sys/syscall.h>
- #include <asm/unistd.h>
- 
diff --git a/patches/qemu-2.10.1/series b/patches/qemu-2.10.1/series
deleted file mode 100644
index 4d4c6e5..0000000
--- a/patches/qemu-2.10.1/series
+++ /dev/null
@@ -1,6 +0,0 @@
-# generated by git-ptx-patches
-#tag:base --start-number 1
-0001-virtfs-proxy-helper-make-sure-sys-xattr.h-is-include.patch
-0002-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.patch
-0003-memfd-fix-configure-test.patch
-# ae7f94af2198ed5ebb1e8182429e973d  - git-ptx-patches magic
-- 
2.17.1


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

             reply	other threads:[~2018-05-31 10:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-31 10:03 Roland Hieber [this message]
2018-06-05 10:53 ` Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180531100334.24815-1-r.hieber@pengutronix.de \
    --to=r.hieber@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox