get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230795,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230795/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430035626.3511676-2-pierrick.bouvier@oss.qualcomm.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260430035626.3511676-2-pierrick.bouvier@oss.qualcomm.com>",
    "date": "2026-04-30T03:56:20",
    "name": "[v2,1/7] target-info: extract target_info() definition in target-info-init.h",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0a74e94e64bec7c8247e6b034ed364f5fb0a0b32",
    "submitter": {
        "id": 93152,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/93152/?format=api",
        "name": "Pierrick Bouvier",
        "email": "pierrick.bouvier@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430035626.3511676-2-pierrick.bouvier@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 502185,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502185/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502185",
            "date": "2026-04-30T03:56:26",
            "name": "single-binary: deduplicate target_info()",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/502185/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230795/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230795/checks/",
    "tags": {},
    "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=FaNY2e6v;\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=SIWmsolE;\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 4g5gvv63zxz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 14:20:59 +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 1wIItS-0006Tn-Dr; Thu, 30 Apr 2026 00:20:54 -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 1wIItN-0006ON-Te\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 00:20:51 -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 1wIItM-0001ry-7T\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 00:20:49 -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 63TKbLdD2855826\n for <qemu-devel@nongnu.org>; Thu, 30 Apr 2026 03:56:34 GMT",
            "from mail-dl1-f72.google.com (mail-dl1-f72.google.com\n [74.125.82.72])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dukrp2kqj-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Thu, 30 Apr 2026 03:56:34 +0000 (GMT)",
            "by mail-dl1-f72.google.com with SMTP id\n a92af1059eb24-12c21dbc9c1so1841568c88.0\n for <qemu-devel@nongnu.org>; Wed, 29 Apr 2026 20:56:34 -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 a92af1059eb24-12de32173acsm7159443c88.5.2026.04.29.20.56.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 29 Apr 2026 20:56:32 -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 +xrv2vsliFNoIqj07DnW57E7l3t4q1oodc/gcjFqRpA=; b=FaNY2e6vL5zzUKL5\n kjGBwz7IU10Xu5i7Wnu/a5FlD/+BwK+MCOtNMAHDHuTtCPTqedrHyhhcjIEEbkbL\n 2V9YjfyWoMRNI/K18C1EsDpE+dJP8I8oW/dxa9xfovh93GjK+ZlQjZgTc1BcK16A\n muIfhlhrw4E9cCyv1INqj59dV7zKY7/pUAHt2S8MyiWpetI7xqnvgMQw8jQBWcTU\n auAq4HTX/HrlnmZzt3jTTMtLL1+YX8jZLUzRZyr7lGJ70ewNsLZHzHs6qUAuaxuz\n CykA2PPmXCT+PSp1Y/1j/M19sLiMKQWPQjzpYMWC2MEBdHHlNwl94Ik94C49ai6+\n MueE9g==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1777521393; x=1778126193; 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=+xrv2vsliFNoIqj07DnW57E7l3t4q1oodc/gcjFqRpA=;\n b=SIWmsolEg1JwEB0TOU9PHL44j5wqLYXPaLd8jxN8y5xHgk46HUUXXU5a+PhecYSnSQ\n WR9ZOWSOGZfhmHo9Wq3xvX2KtkmLFJOLmMdw5Ea5PrPA6mPKQZV72h6wqFEVgQ8ELuj+\n LNlO4eRpWqRkRBbSCC322GDEHrAEYouvxxjPiS/dxjabrvRcx8h8R0BXfI4UgVTVZN6V\n 3jRlJO2v1MxUUQsI+TUjn/XtCOVesZWHLuXjG6JO5HIrO/yahd7wGsudbkF88ZmvdhwU\n +600D5C3iljD1SMQOzNgZG43vIaSlrl8NtSg/C3iP0LFvuGwNYf8PgCdpgKSVrPVbBMs\n JUjQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777521393; x=1778126193;\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=+xrv2vsliFNoIqj07DnW57E7l3t4q1oodc/gcjFqRpA=;\n b=ruOWkBloWyyYz0cjS1jC2nUVuroTOdK+Z6RNh2hn3DqBe5AcBSTzeGJLQ9zr2A7/0/\n K7qjU+WCVhJ4afB46O0tDsBzf2sP2dLUaMiwgo1nfvvMbb7fZEe87m/MilMNE6pb5SKj\n m6lOfm+UXzq/jmS3xS63Mkh4E84mcXovinoL5BjE3HUpb/O2y2vGJEcGWPqJmAMlnkh2\n 6EzOR3Ei6pokuCswq4sAyVFqca1/v5Zpzdxovn/JstnbL0LLsE1B/bNU2sxUoRDnFe5J\n /D8vdZj4voFQqM4hiiJkT85kHWErIf3EcbrojPVagX12ASnfKwsp4FdNX88GXQOgcX9N\n gtUg==",
        "X-Gm-Message-State": "AOJu0YyW6GnPYkx5mOca0KjpOozYGZ7HT/KvPcXMALcierLg00gu4QAl\n 7MUOPtGOSOnrH+0L+S2WvIHx8WmEfoWpErErBb01A/Y03IafU28PqItJvlw7h/x40iBeXnAtWhP\n PK28sfrtN8+32qY/nb/xF9/w/Fvyxlehr/cWABBXzFnvOTGi0TeHx3eqKVlkb/AMQ2nL+",
        "X-Gm-Gg": "AeBDietBln1OlWsJ8dEeZKt9UTjJbxIzzDAsiLulQI6UAYBdFI+Iq2fnPdOb2PGgfpm\n yhAzVkPMktZ/cON7fy1lgYGdsO0Fcxv+jPe2ukLtjgBKqOaZSLO15uAbXzt6oapu/dsz7aofEbU\n Z4PU9g7B4k3QUj+MXStAKFsUvExhhEF7KCztsEI++amyupKvMBc12O3p6ajuk+VUdilrYh67yOw\n A6ypmOuxmOqRzg3ZdZjxGIgXC6wLSp4xLtq+fRMRe6zocbhyo7P3r20a2qMsBx4P3GZ2ckxkfVA\n gDs478p4lVTi5RUo81GxxSNAvvpeBe5FrbRqr0J33ztCBL7GhyVGvA/9PcoD0w2/8pqssyqdqy7\n HpFOo7siQeP4t4bk32eVSBFctSC6BYA7eHSQUvT/ueYjn55HMFkbroQcZPxihy2o49cWMz0asIp\n JNa/8kxcNtkwDsmxcC",
        "X-Received": [
            "by 2002:a05:7022:318:b0:128:bc19:813d with SMTP id\n a92af1059eb24-12deacadc37mr591915c88.27.1777521393508;\n Wed, 29 Apr 2026 20:56:33 -0700 (PDT)",
            "by 2002:a05:7022:318:b0:128:bc19:813d with SMTP id\n a92af1059eb24-12deacadc37mr591907c88.27.1777521393004;\n Wed, 29 Apr 2026 20:56:33 -0700 (PDT)"
        ],
        "From": "Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>, =?utf-8?q?Philippe?=\n\t=?utf-8?q?_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Richard Henderson <richard.henderson@linaro.org>,\n Markus Armbruster <armbru@redhat.com>, Anton Johansson <anjo@rev.ng>,\n marcandre.lureau@redhat.com, Paolo Bonzini <pbonzini@redhat.com>,\n Max Filippov <jcmvbkbc@gmail.com>,\n =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>",
        "Subject": "[PATCH v2 1/7] target-info: extract target_info() definition in\n target-info-init.h",
        "Date": "Wed, 29 Apr 2026 20:56:20 -0700",
        "Message-ID": "<20260430035626.3511676-2-pierrick.bouvier@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260430035626.3511676-1-pierrick.bouvier@oss.qualcomm.com>",
        "References": "<20260430035626.3511676-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": "xqZf_5xw4_FjJzOw1qou22WR-7SJGCqE",
        "X-Proofpoint-GUID": "xqZf_5xw4_FjJzOw1qou22WR-7SJGCqE",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDMwMDAzNiBTYWx0ZWRfX65woEPAXW8yw\n 2Z/tWGu342DqoMkwkPf/nGOKcdhv75m+Y9ZGtO9mNsgVa7xajfiGn/pYWjCVzae2qekMcGBom+W\n j/jcffvjU5rZdOcpPk243aJnlhcp/JubSFdJ7rl96ENqgfwInzr7AVR790kXnhZ6xzrIIWjmeH/\n GARdiwB1Uo8UC0a6a4tfMX+dBlV82xDOJ8ujwnEzrpuclDcMhjkCO4zcTvxhDK6TOBNAeIuEVRK\n qip6MtDoz0hvCyRT/9X2QCYBWO25wvgsdhw3VfK4QzelCqaXK8YYUAuN2al4KWRm7vybh+rwtpT\n iKj3IFNP0WReueJLWlG2tp/YFNzAcB0mOWFHtcbpGJc9W9/V0st9YWTLQRk1QgNdAIfBiUS/9EA\n 58GT23iAd+oNEoKpCpuXp3hjw1BC9EMLuw6tDMe91oIF64qAcMQetgAC1wRZavROZ+xrUDBtceQ\n VCL82zEWt+mFfc1+Dkw==",
        "X-Authority-Analysis": "v=2.4 cv=WoQb99fv c=1 sm=1 tr=0 ts=69f2d2f2 cx=c_pps\n a=bS7HVuBVfinNPG3f6cIo3Q==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17\n a=IkcTkHD0fZMA:10 a=A5OVakUREuEA: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=vBUdepa8ALXHeOFLBtFW:22",
        "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-04-30_01,2026-04-28_01,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n clxscore=1015 phishscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0\n priorityscore=1501 spamscore=0 suspectscore=0 bulkscore=0 malwarescore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604300036",
        "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   | 20 ++++++++++++++++++++\n target-info-stub.c                |  6 ++----\n 4 files changed, 26 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..9be06d8523a\n--- /dev/null\n+++ b/include/qemu/target-info-init.h\n@@ -0,0 +1,20 @@\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+\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": [
        "v2",
        "1/7"
    ]
}