get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2231559,
    "url": "http://patchwork.ozlabs.org/api/patches/2231559/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430203842.29156-5-pierrick.bouvier@oss.qualcomm.com/",
    "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": "<20260430203842.29156-5-pierrick.bouvier@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-04-30T20:38:38",
    "name": "[v3,4/8] 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/people/93152/?format=api",
        "name": "Pierrick Bouvier",
        "email": "pierrick.bouvier@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430203842.29156-5-pierrick.bouvier@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 502380,
            "url": "http://patchwork.ozlabs.org/api/series/502380/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502380",
            "date": "2026-04-30T20:38:36",
            "name": "single-binary: deduplicate target_info()",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/502380/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2231559/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2231559/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=g3s8C3di;\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=d25h2+MA;\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 4g65dY601tz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 06:40:01 +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 1wIYA7-0002tA-B0; Thu, 30 Apr 2026 16:39:07 -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 1wIYA1-0002nC-Fr\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 16:39:02 -0400",
            "from mx0b-0031df01.pphosted.com ([205.220.180.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 1wIY9x-0000th-Dj\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 16:39:00 -0400",
            "from pps.filterd (m0279873.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63UITrSQ563955\n for <qemu-devel@nongnu.org>; Thu, 30 Apr 2026 20:38:55 GMT",
            "from mail-dy1-f197.google.com (mail-dy1-f197.google.com\n [74.125.82.197])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dv7wut3s1-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 20:38:55 +0000 (GMT)",
            "by mail-dy1-f197.google.com with SMTP id\n 5a478bee46e88-2bdf6fe90a9so2869506eec.1\n for <qemu-devel@nongnu.org>; Thu, 30 Apr 2026 13:38:54 -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-2ee3889d628sm2202341eec.6.2026.04.30.13.38.52\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 30 Apr 2026 13:38:52 -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=g3s8C3diLIOaWa3i\n sjbEI/FZzvsmK1i5LulMoxiGP+qOWJwqYK+3ZzyvGGWYckJb10q3qEO7dDIAdRE2\n AlNVFCuJ49TTqmxpUHizIvg4+VYDyWnbYLtht/X+NRocYgCooVusGgoP18MDUUJ1\n Q9JS8EeAPY66sZL05pctO72LYh5ATjrqC+HGvVmSCZxxaRLzhQIMRUeCk4K+ZZh6\n W4akyI7bVXn2/H47s6tMci+F5o1MbM1saKs1yot360gvJrGGKB7GwM6hiopAv/UU\n sLg2rjYUt/E3W1rlieNmd4jEVVYmw1vbi1fQq9FlnFj5W0ZlW3Toog9CCiMdcvdK\n Jjcp8Q==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1777581534; x=1778186334; 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=d25h2+MAf7TUaF4+0rQ9wFMwHTatGC7qzqYH4OOlXwrWCUX9c4w7Aci2p5Epgjib8f\n vNKqYFuAV1JmfhnNqVjwFyUCJ1RzfUnUFb2J4Q+USTK+Wo4YHSkcm36QMrc6bkb5Toa9\n SWl3014ClbxtnnmhMs9qwLXaCAYtEWt7NCVyveLeUlEGWDYBppxVRjBa63hygfh56sCV\n hC7RbmE5eiu1hNOvSWLONi25LA1CkmJtSP5B+EEyk/LuIDqIJ75+OnSmIKbKJpu/rvm3\n gHgrDiqkoU7ykRhufTfNHinpYVkt/hWyjhqIJNnAVGIkqCoDhe68dELPBtlAKdkPkFQa\n HLpg=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777581534; x=1778186334;\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=Y7HAHGyu4o3uMJgDUjE15+wQoaD00sbV3mbFjh9CzofXwsy/rf3bYtYJ7gHhnXkV68\n Oup93zPZVVVMeq1opZiihw0gTYH3zdsca3zDSfg29WBhUg4gdSec4lF8Ao8H5Yr2u3QZ\n 3/GBkTF+XT8uZmkziSM2wAJ8hLF4kb6OlRyb2b7/QD14H1ahYyTOFNXUC7sWBCwkFQSR\n OZ0Pk0Ee415Va1U1ePLaADfwmOLVvIg2rivbQK+QH4zVH0LccDXQr8iZFD3h0DzdYodZ\n 7D1XSGFTkgOl3soCoqJ6g6eV+jo3eg4qZhINGvy7/Q2V3lKnu5cy1X1Tpqsaz7iJloZG\n DNBw==",
        "X-Gm-Message-State": "AOJu0YxkpcPlBfynjYROcTWmKkPJARgXjGWz89sLXfTn3v2Wm/cFRPnS\n sMM++3lR1J34fDLk4GE0m/R24+ovrmFJ8PMkxGHRNHFptF27XIYEOPXKLIDU6HYVzG7fWOFyRqa\n kUku5luKPjXnAPU/fwj2PZCsjPbHOvDsD4OOy3K01cB1OVlv4DMG9upuO2obwAlgiI2nX",
        "X-Gm-Gg": "AeBDietzegLF/NcI2JyDvRn8KX2jIlcvGIxJIxbqD2sc0+R0WK+Ekd15Qi/Ul5GLxGl\n A4x3b6lhhRPB/9TP/oGjKnxoLGNctyabbeAcgRUrGVYPGVb4zXNaQan7337DcVCDrhuf6BHM5Bx\n GaJekrdEFQQgvN38J/AOAvvgupuku/r1k/2G/02OHxOW0nbEG7GX8vlYhf3wPBA8ooW5GPIML6E\n 5jnyv2ApHsqU+5OIUgJTbB9wZd+s5yBDieRyma7N1y0RjV0xiUinWwn7wCI9XFcTtNjX3QTl0ta\n FuOC+BC3pxPGh7xnEgKcqZV+Dl7w3rPT2lO/GBNgi018h4vghjc7jKzj/ViNr5hrrHdpBSJ0CwR\n 88W7E0XCpGSP1eRfUVmF3pvoeLOqyRX8kv6mgdPwWu47n0frPLwsWY8bKp4Rzxn86p40I9GjNmh\n L1M6cBOs+l/PnkgGNR",
        "X-Received": [
            "by 2002:a05:7300:5411:b0:2d1:e92c:f7ff with SMTP id\n 5a478bee46e88-2ed3c5c9e16mr2196138eec.1.1777581533626;\n Thu, 30 Apr 2026 13:38:53 -0700 (PDT)",
            "by 2002:a05:7300:5411:b0:2d1:e92c:f7ff with SMTP id\n 5a478bee46e88-2ed3c5c9e16mr2196122eec.1.1777581533119;\n Thu, 30 Apr 2026 13:38:53 -0700 (PDT)"
        ],
        "From": "Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "=?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>,\n marcandre.lureau@redhat.com, Markus Armbruster <armbru@redhat.com>,\n Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>,\n Paolo Bonzini <pbonzini@redhat.com>, Anton Johansson <anjo@rev.ng>,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Max Filippov <jcmvbkbc@gmail.com>,\n Richard Henderson <richard.henderson@linaro.org>",
        "Subject": "[PATCH v3 4/8] target-info: extract target_info() definition in\n target-info-init.h",
        "Date": "Thu, 30 Apr 2026 13:38:38 -0700",
        "Message-ID": "<20260430203842.29156-5-pierrick.bouvier@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260430203842.29156-1-pierrick.bouvier@oss.qualcomm.com>",
        "References": "<20260430203842.29156-1-pierrick.bouvier@oss.qualcomm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDMwMDIxMyBTYWx0ZWRfX4S8a3OkR5SI2\n JOMs2YPnPvjjxkLHLPcYaTzhXFoPlPz67kWvHd17o+5SAyD61mpQ6XURUNcafQkJUiynR0rQdte\n dXPMFga10M1D/ebaQpM4Pa3Lkz9IY4F1yw4QnG/MasU48tvvoqfPswm2EjZ2ncYH54n9hshx9qy\n JM9p3by05hGShVLZJ9oyDyytIAs1JB0KdkFoVkc+5TcWp+VE8BIvVu5G9R+usBQYzbt95cqXSxV\n 1xN+xBpnEj8qF9nRzAMgjaclffWNlJSC7GotmXjgO4FYi6JU/u8bhl1ISLvPQhEHe2Ywub68/eM\n cDCZPfRNFiPUzzVET7U6E5cNa5NjJmYxU2uYk3QkQq7CpTWsq+hVu+oWSt4NxDz1fqryjax0O0h\n jYr8cjmU967ScwSj1jURlb3/ydf7My7+e9QMcZiwL14r0bjuKEuA8oM/OV42i8TdoZPuZOVwVJ5\n fwX2sDXfnS5EbEUk6/w==",
        "X-Proofpoint-ORIG-GUID": "tcp0dW_brYjFam10FaHr1rGJHOvwztjC",
        "X-Proofpoint-GUID": "tcp0dW_brYjFam10FaHr1rGJHOvwztjC",
        "X-Authority-Analysis": "v=2.4 cv=GMk41ONK c=1 sm=1 tr=0 ts=69f3bddf cx=c_pps\n a=Uww141gWH0fZj/3QKPojxA==: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=rJkE3RaqiGZ5pbrm-msn:22\n a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=090slgBn3MrHMI8nANcA:9 a=3ZKOabzyN94A:10\n a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5: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_06,2026-04-30_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n suspectscore=0 impostorscore=0 priorityscore=1501 adultscore=0\n lowpriorityscore=0 phishscore=0 malwarescore=0 bulkscore=0 clxscore=1015\n spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound\n adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000\n definitions=main-2604300213",
        "Received-SPF": "pass client-ip=205.220.180.131;\n envelope-from=pierrick.bouvier@oss.qualcomm.com;\n helo=mx0b-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": [
        "v3",
        "4/8"
    ]
}