Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/811963/?format=api
{ "id": 811963, "url": "http://patchwork.ozlabs.org/api/patches/811963/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/150496958584.9654.9736122740323515191.stgit@bahia/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<150496958584.9654.9736122740323515191.stgit@bahia>", "list_archive_url": null, "date": "2017-09-09T15:06:25", "name": "[4/5] spapr_pci: use the common _FDT() helper", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "d0e654c61827b9304de8863e01effa83c374b318", "submitter": { "id": 69178, "url": "http://patchwork.ozlabs.org/api/people/69178/?format=api", "name": "Greg Kurz", "email": "groug@kaod.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/150496958584.9654.9736122740323515191.stgit@bahia/mbox/", "series": [ { "id": 2354, "url": "http://patchwork.ozlabs.org/api/series/2354/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=2354", "date": "2017-09-09T15:05:46", "name": "spapr_pci: various cleanups and improvements", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2354/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/811963/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/811963/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xqHbz6xC9z9s7F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 10 Sep 2017 01:07:27 +1000 (AEST)", "from localhost ([::1]:49879 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dqhLw-00086N-NG\n\tfor incoming@patchwork.ozlabs.org; Sat, 09 Sep 2017 11:07:24 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:51077)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <groug@kaod.org>) id 1dqhL8-0007v5-LK\n\tfor qemu-devel@nongnu.org; Sat, 09 Sep 2017 11:06:39 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <groug@kaod.org>) id 1dqhL4-0006Hd-5u\n\tfor qemu-devel@nongnu.org; Sat, 09 Sep 2017 11:06:34 -0400", "from 10.mo177.mail-out.ovh.net ([46.105.73.133]:41248)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <groug@kaod.org>) id 1dqhL3-0006FX-VJ\n\tfor qemu-devel@nongnu.org; Sat, 09 Sep 2017 11:06:30 -0400", "from player714.ha.ovh.net (b6.ovh.net [213.186.33.56])\n\tby mo177.mail-out.ovh.net (Postfix) with ESMTP id 8F0BC751FF\n\tfor <qemu-devel@nongnu.org>; Sat, 9 Sep 2017 17:06:28 +0200 (CEST)", "from [192.168.0.243] (gar31-1-82-66-74-139.fbx.proxad.net\n\t[82.66.74.139]) (Authenticated sender: groug@kaod.org)\n\tby player714.ha.ovh.net (Postfix) with ESMTPA id 5CCB33C0073;\n\tSat, 9 Sep 2017 17:06:26 +0200 (CEST)" ], "From": "Greg Kurz <groug@kaod.org>", "To": "qemu-devel@nongnu.org", "Date": "Sat, 09 Sep 2017 17:06:25 +0200", "Message-ID": "<150496958584.9654.9736122740323515191.stgit@bahia>", "In-Reply-To": "<150496954641.9654.1998704077006846521.stgit@bahia>", "References": "<150496954641.9654.1998704077006846521.stgit@bahia>", "User-Agent": "StGit/0.17.1-46-g6855-dirty", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "X-Ovh-Tracer-Id": "248823881333578067", "X-VR-SPAMSTATE": "OK", "X-VR-SPAMSCORE": "-100", "X-VR-SPAMCAUSE": "gggruggvucftvghtrhhoucdtuddrfeelledrfeeigdekjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd", "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]", "X-Received-From": "46.105.73.133", "Subject": "[Qemu-devel] [PATCH 4/5] spapr_pci: use the common _FDT() helper", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "<qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Cc": "qemu-ppc@nongnu.org, David Gibson <david@gibson.dropbear.id.au>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>" }, "content": "All other users in hw/ppc already consider an error when building\nthe FDT to be fatal, even on hotplug paths. There's no valid reason\nfor spapr_pci to behave differently. So let's used the common _FDT()\nhelper which terminates QEMU when libfdt fails.\n\nSigned-off-by: Greg Kurz <groug@kaod.org>\n---\n hw/ppc/spapr_pci.c | 10 +---------\n 1 file changed, 1 insertion(+), 9 deletions(-)", "diff": "diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c\nindex 6da73fe6bc29..abb9f05e7b75 100644\n--- a/hw/ppc/spapr_pci.c\n+++ b/hw/ppc/spapr_pci.c\n@@ -40,7 +40,7 @@\n #include \"trace.h\"\n #include \"qemu/error-report.h\"\n #include \"qapi/qmp/qerror.h\"\n-\n+#include \"hw/ppc/fdt.h\"\n #include \"hw/pci/pci_bridge.h\"\n #include \"hw/pci/pci_bus.h\"\n #include \"hw/pci/pci_ids.h\"\n@@ -61,14 +61,6 @@\n #define RTAS_TYPE_MSI 1\n #define RTAS_TYPE_MSIX 2\n \n-#define _FDT(exp) \\\n- do { \\\n- int ret = (exp); \\\n- if (ret < 0) { \\\n- return ret; \\\n- } \\\n- } while (0)\n-\n sPAPRPHBState *spapr_pci_find_phb(sPAPRMachineState *spapr, uint64_t buid)\n {\n sPAPRPHBState *sphb;\n", "prefixes": [ "4/5" ] }