get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2233246,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2233246/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505224826.2698753-4-pierrick.bouvier@oss.qualcomm.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260505224826.2698753-4-pierrick.bouvier@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-05-05T22:48:23",
    "name": "[v4,3/6] target-info: extract target_info() definition in target-info-init.h",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "71671e3582291c86933c3dee8e2ccfb23e6a09c7",
    "submitter": {
        "id": 93152,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/93152/?format=api",
        "name": "Pierrick Bouvier",
        "email": "pierrick.bouvier@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505224826.2698753-4-pierrick.bouvier@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 502907,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/502907/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502907",
            "date": "2026-05-05T22:48:20",
            "name": "single-binary: deduplicate target_info()",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/502907/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2233246/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2233246/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@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=YIeMZ/sR;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=TZSQG19x;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g9DGC4v8Fz1yKj\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 08:49:06 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wKOZB-0006PO-VM; Tue, 05 May 2026 18:48:37 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pierrick.bouvier@oss.qualcomm.com>)\n id 1wKOZA-0006Oe-Kk\n for qemu-devel@nongnu.org; Tue, 05 May 2026 18:48:36 -0400",
            "from mx0a-0031df01.pphosted.com ([205.220.168.131])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pierrick.bouvier@oss.qualcomm.com>)\n id 1wKOZ8-00069v-RA\n for qemu-devel@nongnu.org; Tue, 05 May 2026 18:48:36 -0400",
            "from pps.filterd (m0279867.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 645LYYxS3475707\n for <qemu-devel@nongnu.org>; Tue, 5 May 2026 22:48:33 GMT",
            "from mail-dy1-f199.google.com (mail-dy1-f199.google.com\n [74.125.82.199])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dyhsgt33p-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Tue, 05 May 2026 22:48:33 +0000 (GMT)",
            "by mail-dy1-f199.google.com with SMTP id\n 5a478bee46e88-2c0f6593ef5so8233357eec.1\n for <qemu-devel@nongnu.org>; Tue, 05 May 2026 15:48:33 -0700 (PDT)",
            "from hu-pbouvier-lv.qualcomm.com (Global_NAT1.qualcomm.com.\n [129.46.96.20]) by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2f56d4cf2fdsm898953eec.8.2026.05.05.15.48.31\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 05 May 2026 15:48:31 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n 54T5hcINubNCcwaMGkVx4ajHGLNd1sHSAIGwNUp8J0A=; b=YIeMZ/sRCuMkfO8T\n TRcmh2KWCJZE3qOQBniMKFMSmPcmiA/MSCFO0CX3rokgxIYES1cSnZsBLR2EWlM4\n hZiy4cmSZziYanl7FE2nJKfDUxCjA9qFIHsszZbq1ttisjtv5MK6Z4cc7SZcy37g\n ju7APdETSc7HLO37gkLQFM0OazA4N7+1GTbOdP213CB/xdrxOag3vWyAy1+qMhHZ\n NptTvklM2UILmSrJH7xB0qiXttkFX7c+JLt3uCLfVytv4UG32C/sKNmRLnTE5pkx\n pKfo2AeKdrLsUidcDstVhnKxEFdrU2OdOv+MjXxowndQaU7fiXIWx+iq3nL+BhUm\n EzxNIA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1778021312; x=1778626112; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=54T5hcINubNCcwaMGkVx4ajHGLNd1sHSAIGwNUp8J0A=;\n b=TZSQG19xgnH4r3tTCX9EYvQMsluSEkjdwircKR9pC2NqQhrRjHN58gljnb8Ol4PI8P\n wfKRDPvl5ulNQ/RB1wxN6Wtd9bB4pAg+sg52hOQ1SSsZuyP/R7FthdFd3aIiDXUJsMEP\n T4YzqyaYOW/A63Zr5P9R/9M809cLHqO5YErxwtIuhHj7ZEGTbf83MkYdl1THTy0+RRlG\n tbrmvh9rhu6O8vq0gYaqhEpbmyUYiXWXiDz6FJLPNBoMorwVrw7JPqYYrkbVhVmJbD1a\n T41Gkg1e6nTFODewLfMo0T/z/ACDmyVV1qr812IKhSWVcm5nkEQ00f5cWOWFSuIwg3vb\n RsFA=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778021312; x=1778626112;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=54T5hcINubNCcwaMGkVx4ajHGLNd1sHSAIGwNUp8J0A=;\n b=NpGKzqJXnCWp6UCWcfQobpAF8MwSVFauaxqgxWM7/Ulj4D43+z9fEFkWpvotInG5Vc\n mKm/w6r8tNlvrl7x4wWmU/DaTWQTc3DFjTyzgWVIFx8SHDsT+j86lpJrTkmfRSmTQTRd\n KEXV6P4AaVntFQoiKG1LXfjLLLPtyzwIPJyUI1Cc1b4BGWHfD6U86BWzf/PnPr7U8Yom\n CcXXwxgaY4X9hUuUXAT7dUnioXsR0j3eCUMq2VgfdFUMyb85ecCYscTUCLGhMV0xD3XG\n +u+oogAiYz22XXzN/YXJaRS5DuxUw9yi69FBtHqpPlMSqneVGsvphri5g6FiF10Ej6N9\n 5omA==",
        "X-Gm-Message-State": "AOJu0YyNkUZXEBhvQg5E5M5WgwyuuFqgHYy0qq72olzIoUXaedk7nKFU\n AqI+9nNvcPTtmXEHBeDq5oIOt/Ur9ihwNbhOaNBcTvHiyXJBH8NG+GeBbuj/aq6tBdEFYdddeji\n 9VrHaaJF03V99iRFiJ/qevuyl6i5wqFf1DOOe5IjPP1a2X4jGTWI82KiwpOyuQZ+6DN2n",
        "X-Gm-Gg": "AeBDiev1DGMHlnK7f8SeeULZOWAp45M9wwDDzUxJvgXiTbHfjIq+/904uDrtcmVjma8\n +uOgaYiU1nHLQTvU2UD1Rkwtt3LnMAbLBasR76WJ4ukj5cefHHfekghW0l/yIuTvtXv7yAplr9u\n UdoSvcApYQE5IQ3xmYOLbUuoc6TnAO3N9ltGUo2yGamjg5b89zMGwYnZ8CqILtjXuZ+84thBedc\n PSa/1BvH/kec6SuPU20uac/n9sNdGoZAEy7afjjuLGwtqHIXGTX5aJbXQxXrsr90oXuhdMDJjNr\n pxlM3WnTcD58OQKak6Q/fHj9WKBuN/22y0r0g2PGZfvVAsEzndFUCCFnX6iMC8dlBXZjXBh3wZX\n q10jlVsi6gyEi1XELdCT6BKtL3AZOw7seGYXgkFExfaHUbutKgAfxk8cUKXZYCT1SdQWVBT54gx\n gVPqp85aR65OR5tb9b",
        "X-Received": [
            "by 2002:a05:7300:72d1:b0:2ed:2942:34ab with SMTP id\n 5a478bee46e88-2f548897087mr652867eec.3.1778021312404;\n Tue, 05 May 2026 15:48:32 -0700 (PDT)",
            "by 2002:a05:7300:72d1:b0:2ed:2942:34ab with SMTP id\n 5a478bee46e88-2f548897087mr652853eec.3.1778021311868;\n Tue, 05 May 2026 15:48:31 -0700 (PDT)"
        ],
        "From": "Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Anton Johansson <anjo@rev.ng>, marcandre.lureau@redhat.com,\n Markus Armbruster <armbru@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>,\n Max Filippov <jcmvbkbc@gmail.com>,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, =?utf-8?q?Dani?=\n\t=?utf-8?q?el_P=2E_Berrang=C3=A9?= <berrange@redhat.com>",
        "Subject": "[PATCH v4 3/6] target-info: extract target_info() definition in\n target-info-init.h",
        "Date": "Tue,  5 May 2026 15:48:23 -0700",
        "Message-ID": "<20260505224826.2698753-4-pierrick.bouvier@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260505224826.2698753-1-pierrick.bouvier@oss.qualcomm.com>",
        "References": "<20260505224826.2698753-1-pierrick.bouvier@oss.qualcomm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-Proofpoint-ORIG-GUID": "yciioyWDmJHi5Wmu-6ygbYOOlv37Pg0Z",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNTA1MDIyMiBTYWx0ZWRfX2DyOlFMUQwrL\n x4O6fM7NCJrCKzN3ecD4yKoV8wDOd3kgIVGi0pWARptruiB7hRf2FZtuaEJeWPpPB7rWbqbMi+n\n LHRm7X5sgF940piJ0uf3ZvEXe6FecIWuDKewqhlBcNPCbsaMeZ80jmknXI9MTfdLoY7XMWgLYDn\n WJus41+QvjlMYgU22lHmO933g+R1CNEY6nf5B/uw9Y9zz5Q8egLu8YhfsPQDdvg56tq8KRqaOEu\n EPpKnQb2XWXe6NCkV4OU5BJSxhkFJqWu0th1uuAOKxSXMSOFvt46k3UKq+a6ZuAQHwpy+eZxA8D\n diOvbgK7tXU4GyhHMItjIPoVQMv4e8QHTOMNTakvUz4/k1ju2OZ1z2j6GlL5rAbhn4+4GZEJof2\n G0SemFNFv+wquKXbIbfGab2wtUXE7Nr4dWgkQMMakZRxj9dH7192KKC/aFpo1FZFrCQtP4L8OTK\n cAk/6LEbaujq1ncD9GQ==",
        "X-Authority-Analysis": "v=2.4 cv=EPU2FVZC c=1 sm=1 tr=0 ts=69fa73c1 cx=c_pps\n a=cFYjgdjTJScbgFmBucgdfQ==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17\n a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22\n a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=090slgBn3MrHMI8nANcA:9 a=3ZKOabzyN94A:10\n a=QEXdDO2ut3YA:10 a=scEy_gLbYbu1JhEsrz4S:22",
        "X-Proofpoint-GUID": "yciioyWDmJHi5Wmu-6ygbYOOlv37Pg0Z",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-05-05_02,2026-04-30_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n adultscore=0 malwarescore=0 impostorscore=0 clxscore=1015 bulkscore=0\n phishscore=0 suspectscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605050222",
        "Received-SPF": "pass client-ip=205.220.168.131;\n envelope-from=pierrick.bouvier@oss.qualcomm.com;\n helo=mx0a-0031df01.pphosted.com",
        "X-Spam_score_int": "-27",
        "X-Spam_score": "-2.8",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://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 <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "This allows us to prepare next commits, which will introduce qom\nregistration for system mode.\n\nReviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>\nSigned-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>\n---\n configs/targets/aarch64-softmmu.c |  6 ++----\n configs/targets/arm-softmmu.c     |  6 ++----\n include/qemu/target-info-init.h   | 21 +++++++++++++++++++++\n target-info-stub.c                |  6 ++----\n 4 files changed, 27 insertions(+), 12 deletions(-)\n create mode 100644 include/qemu/target-info-init.h",
    "diff": "diff --git a/configs/targets/aarch64-softmmu.c b/configs/targets/aarch64-softmmu.c\nindex 82ccb575759..75d95b0e743 100644\n--- a/configs/targets/aarch64-softmmu.c\n+++ b/configs/targets/aarch64-softmmu.c\n@@ -8,6 +8,7 @@\n \n #include \"qemu/osdep.h\"\n #include \"qemu/target-info-impl.h\"\n+#include \"qemu/target-info-init.h\"\n #include \"hw/arm/machines-qom.h\"\n #include \"target/arm/cpu-qom.h\"\n #include \"target/arm/cpu-param.h\"\n@@ -23,7 +24,4 @@ static const TargetInfo target_info_aarch64_system = {\n     .page_bits_init = TARGET_PAGE_BITS_LEGACY,\n };\n \n-const TargetInfo *target_info(void)\n-{\n-    return &target_info_aarch64_system;\n-}\n+target_info_init(target_info_aarch64_system)\ndiff --git a/configs/targets/arm-softmmu.c b/configs/targets/arm-softmmu.c\nindex 18940e51e55..73546fa5737 100644\n--- a/configs/targets/arm-softmmu.c\n+++ b/configs/targets/arm-softmmu.c\n@@ -8,6 +8,7 @@\n \n #include \"qemu/osdep.h\"\n #include \"qemu/target-info-impl.h\"\n+#include \"qemu/target-info-init.h\"\n #include \"hw/arm/machines-qom.h\"\n #include \"target/arm/cpu-qom.h\"\n #include \"target/arm/cpu-param.h\"\n@@ -23,7 +24,4 @@ static const TargetInfo target_info_arm_system = {\n     .page_bits_init = TARGET_PAGE_BITS_LEGACY,\n };\n \n-const TargetInfo *target_info(void)\n-{\n-    return &target_info_arm_system;\n-}\n+target_info_init(target_info_arm_system)\ndiff --git a/include/qemu/target-info-init.h b/include/qemu/target-info-init.h\nnew file mode 100644\nindex 00000000000..c781cfc0590\n--- /dev/null\n+++ b/include/qemu/target-info-init.h\n@@ -0,0 +1,21 @@\n+/*\n+ * QEMU target info initialization\n+ *\n+ * Copyright (c) Qualcomm\n+ *\n+ * SPDX-License-Identifier: GPL-2.0-or-later\n+ *\n+ * This file is included by each file defining a TargetInfo structure and is\n+ * responsible for registering it.\n+ */\n+\n+#ifndef TARGET_INFO_DEF_H\n+#define TARGET_INFO_DEF_H\n+\n+#define target_info_init(ti_var)        \\\n+const TargetInfo *target_info(void)     \\\n+{                                       \\\n+    return &ti_var;                     \\\n+}\n+\n+#endif /* TARGET_INFO_DEF_H */\ndiff --git a/target-info-stub.c b/target-info-stub.c\nindex f5896a72621..af7cdc5e67a 100644\n--- a/target-info-stub.c\n+++ b/target-info-stub.c\n@@ -9,6 +9,7 @@\n #include \"qemu/osdep.h\"\n #include \"qemu/target-info.h\"\n #include \"qemu/target-info-impl.h\"\n+#include \"qemu/target-info-init.h\"\n #include \"hw/core/boards.h\"\n #include \"cpu.h\"\n #include \"exec/page-vary.h\"\n@@ -40,7 +41,4 @@ static const TargetInfo target_info_stub = {\n #endif\n };\n \n-const TargetInfo *target_info(void)\n-{\n-    return &target_info_stub;\n-}\n+target_info_init(target_info_stub)\n",
    "prefixes": [
        "v4",
        "3/6"
    ]
}