get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/817590/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 817590,
    "url": "http://patchwork.ozlabs.org/api/patches/817590/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170922154014.29350-2-f4bug@amsat.org/",
    "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": "<20170922154014.29350-2-f4bug@amsat.org>",
    "list_archive_url": null,
    "date": "2017-09-22T15:39:41",
    "name": "[01/34] hw: use \"qemu/osdep.h\" as first #include in source files",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b550ffebdfb0bfdb0e6439a072c3a696ebb29b24",
    "submitter": {
        "id": 70924,
        "url": "http://patchwork.ozlabs.org/api/people/70924/?format=api",
        "name": "Philippe Mathieu-Daudé",
        "email": "f4bug@amsat.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170922154014.29350-2-f4bug@amsat.org/mbox/",
    "series": [
        {
            "id": 4657,
            "url": "http://patchwork.ozlabs.org/api/series/4657/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=4657",
            "date": "2017-09-22T15:39:40",
            "name": "remove i386/pc dependency from non-PC world (part 1)",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4657/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/817590/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/817590/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>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"mvNWghrx\"; dkim-atps=neutral"
        ],
        "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 3xzHlL0LSwz9t16\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 23 Sep 2017 01:41:34 +1000 (AEST)",
            "from localhost ([::1]:59566 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 1dvQ56-0004Nb-2S\n\tfor incoming@patchwork.ozlabs.org; Fri, 22 Sep 2017 11:41:32 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:40699)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvQ4A-00048S-HG\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 11:40:35 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvQ49-0002lf-9w\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 11:40:34 -0400",
            "from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:38688)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvQ49-0002lA-56; Fri, 22 Sep 2017 11:40:33 -0400",
            "by mail-qt0-x241.google.com with SMTP id o3so880819qte.5;\n\tFri, 22 Sep 2017 08:40:32 -0700 (PDT)",
            "from yoga.lan ([181.93.89.178]) by smtp.gmail.com with ESMTPSA id\n\tz75sm71742qkb.71.2017.09.22.08.40.28\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 22 Sep 2017 08:40:31 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=nEm1dbh2nzWvGecKigJSt/i8nVrRDDLFSpXHUP28Dls=;\n\tb=mvNWghrxLKT/mPTKIAgxoM3CfDuJP0ZX2Qf04P4uzk7DLbCYZP2Yamr82+rrEQfxzA\n\t4Wiy9Yvlolq74Vuk2gFdEoY+tlR8L812nfqrwapfN1+HMww7M3Rw/85exNbeuiG30rEc\n\tpmvOkpd3cSb/DbUdHt0uucP4Rfj7msU9Xls0jDtgXTvKiUdZbyRObfQz+vbN75dlY5vn\n\t+BV3ZlOhaW7NKPkd/RBYNuXzDrI0Xee6t8nORGiY3zRqpYMs4T5LZbX5xQydiJRQ6Kun\n\tj6TqxMnWpHa3yTAApfO04rZ9HNtC9FuRNGCdrWPTfMwbA+s+eI1K8VHtXkoTgYtYHPW7\n\tY48Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references:mime-version:content-transfer-encoding;\n\tbh=nEm1dbh2nzWvGecKigJSt/i8nVrRDDLFSpXHUP28Dls=;\n\tb=isGJjX7r/QVAklrMn7bO9kTg1Kj8TA6iLWLl1b9yzS2wVmRvAVjKp+oJmgr1vUEvxR\n\tDgdLRODE3UC76UAbRhO6iYD4+67SzrJmc913HKA4bdsrhTce3iSVhiEztolXJc4OUnJg\n\tW2pVaOigUOvcvpvKuhggWKu/oEL0aTgZfxj5hKv9YARbXd64bRTjywFY1vo3gvaxM8FF\n\toaS8Kb+tbJ3ExTa/olgGaKXHrvMZ+aPM1iywMqqOaWiJDMhxNxHuv3vhmcdRSZTnfSKP\n\tCzgInGjooYT2hXld85ErASDQls+NQLy59FR5BKgklVxy6xsKVO/mhErMAYeCHqr5BOSh\n\tgonw==",
        "X-Gm-Message-State": "AHPjjUgvmZSxlSATO59iapKQqIH5j6BEjLKOTysjlKQFSRF9AfJuaeY6\n\txmK+A+RqXHcIoqR7f18BOLM=",
        "X-Google-Smtp-Source": "AOwi7QCvsY8y7aZapYNK4UKD0qnM+IJHBr38WM3/+Gh/uvcmLrtzY6ij5ozxrQSrQdyarx/kqZvK6A==",
        "X-Received": "by 10.200.4.158 with SMTP id s30mr8991757qtg.311.1506094832363; \n\tFri, 22 Sep 2017 08:40:32 -0700 (PDT)",
        "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>",
        "To": "Peter Maydell <peter.maydell@linaro.org>, Thomas Huth <thuth@redhat.com>,\n\tPaolo Bonzini <pbonzini@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>,\n\t\"Michael S. Tsirkin\" <mst@redhat.com>,\n\tIgor Mammedov <imammedo@redhat.com>, \n\tEduardo Habkost <ehabkost@redhat.com>,\n\tDavid Gibson <david@gibson.dropbear.id.au>,\n\tAlexander Graf <agraf@suse.de>, Cornelia Huck <cohuck@redhat.com>,\n\tAlex Williamson <alex.williamson@redhat.com>",
        "Date": "Fri, 22 Sep 2017 12:39:41 -0300",
        "Message-Id": "<20170922154014.29350-2-f4bug@amsat.org>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170922154014.29350-1-f4bug@amsat.org>",
        "References": "<20170922154014.29350-1-f4bug@amsat.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.",
        "X-Received-From": "2607:f8b0:400d:c0d::241",
        "Subject": "[Qemu-devel] [PATCH 01/34] hw: use \"qemu/osdep.h\" as first #include\n\tin source files",
        "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-trivial@nongnu.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathi?=\n\t=?utf-8?b?ZXUtRGF1ZMOp?= <f4bug@amsat.org>, \tqemu-devel@nongnu.org",
        "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": "applied using ./scripts/clean-includes\n\nSigned-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n---\n hw/acpi/ipmi-stub.c             | 1 +\n hw/audio/fmopl.c                | 1 -\n hw/cpu/core.c                   | 1 +\n hw/ppc/spapr_cpu_core.c         | 1 +\n hw/smbios/smbios_type_38-stub.c | 1 +\n hw/vfio/ccw.c                   | 2 +-\n hw/virtio/vhost-vsock.c         | 2 +-\n 7 files changed, 6 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/hw/acpi/ipmi-stub.c b/hw/acpi/ipmi-stub.c\nindex 98b6dcee0d..f525f71c2d 100644\n--- a/hw/acpi/ipmi-stub.c\n+++ b/hw/acpi/ipmi-stub.c\n@@ -7,6 +7,7 @@\n  * See the COPYING file in the top-level directory.\n  */\n \n+#include \"qemu/osdep.h\"\n #include \"hw/acpi/ipmi.h\"\n \n void build_acpi_ipmi_devices(Aml *table, BusState *bus)\ndiff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c\nindex 5cfb6a96dd..9f50a89b4a 100644\n--- a/hw/audio/fmopl.c\n+++ b/hw/audio/fmopl.c\n@@ -34,7 +34,6 @@\n #include <math.h>\n //#include \"driver.h\"\t\t/* use M.A.M.E. */\n #include \"fmopl.h\"\n-#include \"qemu/osdep.h\"\n #ifndef PI\n #define PI 3.14159265358979323846\n #endif\ndiff --git a/hw/cpu/core.c b/hw/cpu/core.c\nindex bd578ab80c..7e42e2c87a 100644\n--- a/hw/cpu/core.c\n+++ b/hw/cpu/core.c\n@@ -6,6 +6,7 @@\n  * This work is licensed under the terms of the GNU GPL, version 2 or later.\n  * See the COPYING file in the top-level directory.\n  */\n+#include \"qemu/osdep.h\"\n #include \"hw/cpu/core.h\"\n #include \"qapi/visitor.h\"\n #include \"qapi/error.h\"\ndiff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c\nindex c08ee7571a..4a4f0c60fe 100644\n--- a/hw/ppc/spapr_cpu_core.c\n+++ b/hw/ppc/spapr_cpu_core.c\n@@ -6,6 +6,7 @@\n  * This work is licensed under the terms of the GNU GPL, version 2 or later.\n  * See the COPYING file in the top-level directory.\n  */\n+#include \"qemu/osdep.h\"\n #include \"hw/cpu/core.h\"\n #include \"hw/ppc/spapr_cpu_core.h\"\n #include \"target/ppc/cpu.h\"\ndiff --git a/hw/smbios/smbios_type_38-stub.c b/hw/smbios/smbios_type_38-stub.c\nindex 9528c2c28e..5b83c9b1f1 100644\n--- a/hw/smbios/smbios_type_38-stub.c\n+++ b/hw/smbios/smbios_type_38-stub.c\n@@ -7,6 +7,7 @@\n  * See the COPYING file in the top-level directory.\n  */\n \n+#include \"qemu/osdep.h\"\n #include \"hw/smbios/ipmi.h\"\n \n void smbios_build_type_38_table(void)\ndiff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c\nindex a8baadf57a..4810fa0b50 100644\n--- a/hw/vfio/ccw.c\n+++ b/hw/vfio/ccw.c\n@@ -11,11 +11,11 @@\n  * directory.\n  */\n \n+#include \"qemu/osdep.h\"\n #include <linux/vfio.h>\n #include <linux/vfio_ccw.h>\n #include <sys/ioctl.h>\n \n-#include \"qemu/osdep.h\"\n #include \"qapi/error.h\"\n #include \"hw/sysbus.h\"\n #include \"hw/vfio/vfio.h\"\ndiff --git a/hw/virtio/vhost-vsock.c b/hw/virtio/vhost-vsock.c\nindex 49e0022533..c11c1eb83e 100644\n--- a/hw/virtio/vhost-vsock.c\n+++ b/hw/virtio/vhost-vsock.c\n@@ -11,8 +11,8 @@\n  * top-level directory.\n  */\n \n-#include <sys/ioctl.h>\n #include \"qemu/osdep.h\"\n+#include <sys/ioctl.h>\n #include \"standard-headers/linux/virtio_vsock.h\"\n #include \"qapi/error.h\"\n #include \"hw/virtio/virtio-bus.h\"\n",
    "prefixes": [
        "01/34"
    ]
}