get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2225670,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2225670/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260421120958.190430-3-mkchauras@gmail.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20260421120958.190430-3-mkchauras@gmail.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260421120958.190430-3-mkchauras@gmail.com/",
    "date": "2026-04-21T12:09:56",
    "name": "[V12,2/4] powerpc/jump_label: adjust inline asm to be consistent",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "2688c65cddac038989da44064f159daa0b2fb495",
    "submitter": {
        "id": 92575,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/92575/?format=api",
        "name": "Mukesh Kumar Chaurasiya",
        "email": "mkchauras@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260421120958.190430-3-mkchauras@gmail.com/mbox/",
    "series": [
        {
            "id": 500787,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/500787/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=500787",
            "date": "2026-04-21T12:09:54",
            "name": "Rust support for powerpc",
            "version": 12,
            "mbox": "http://patchwork.ozlabs.org/series/500787/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2225670/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2225670/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-19883-incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=aeUBb0hC;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19883-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2607:f8b0:4864:20::533\"",
            "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=aeUBb0hC;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::533; helo=mail-pg1-x533.google.com;\n envelope-from=mkchauras@gmail.com; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0Llq5J56z1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 22:10:31 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g0Llq4JfLz2yv7;\n\tTue, 21 Apr 2026 22:10:31 +1000 (AEST)",
            "from mail-pg1-x533.google.com (mail-pg1-x533.google.com\n [IPv6:2607:f8b0:4864:20::533])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g0Llp6Bptz2ySW\n\tfor <linuxppc-dev@lists.ozlabs.org>; Tue, 21 Apr 2026 22:10:30 +1000 (AEST)",
            "by mail-pg1-x533.google.com with SMTP id\n 41be03b00d2f7-c741692db4cso1175833a12.1\n        for <linuxppc-dev@lists.ozlabs.org>;\n Tue, 21 Apr 2026 05:10:30 -0700 (PDT)",
            "from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.bl1-in.ibm.com\n ([129.41.58.4])\n        by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-c797701d9bfsm10045274a12.16.2026.04.21.05.10.20\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 21 Apr 2026 05:10:27 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776773431;\n\tcv=none;\n b=J+IV0w0MpFBL6o3Gwu2AJ9VsDh9SsqZxoNl3tYOGNMllMqGGVNpA9L/mKNi5Mlxutquw+cO7NDETYids+WBNwCrryoqSI+2LLpxaj3XYL5CPK3zMQrzqf/50SXZZdwZmLz+HxN/XQa0HCjxVRRIuAISaMJaDpEOHQRywkNaEDVbeX182iZlhnhNp8MDKiM7t/otvvctohWC6RNCILQwzIGBriVtWG3zS/g67/71jbROXOP2pXiVXTtzeiMiy+t3ceuNnKhyXAGulUzHXcqFuHEdtkmythVkw/uRyop6jQC91Up/TFv5E496wd81gzP3yCi0lDntGq/HvnxCxvdRDlA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776773431; c=relaxed/relaxed;\n\tbh=SIf376OZyXcpY0mdrIrP1nTWV/VE0v5g8114Fjjgl84=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=f6i+/lrxCcV2ppZOGMA8wcGbV0yXTG52B1XTDmLpav7hBljhBD7SkwOUHTPzlQ51ClIfZPf0pwTyveXayCo/odvMJLylKp2awLx/WEkh2o+mJl7xHjyY7jzlmbRSJQDP+caK0AfRRR68Ar92dh0nHC/DhiCKXs1LqCcYCqCNUNydHu8svCA5uTgfA/GdBp42WxZX1/0RHEBAawZkxxEi3Ez6Ia8QQjy+ugCiaqc5dZWn0sTI+2l4kmkSHtCHEahaqN7fdu/YjpZl32J+hjVbebdE7TzyN62m6/YuB+poL7SoRK0SPhVvGMXNR8d4Ube9hN3hyM0+iKGqQSjdnUoBIw==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=aeUBb0hC; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::533; helo=mail-pg1-x533.google.com;\n envelope-from=mkchauras@gmail.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776773429; x=1777378229;\n darn=lists.ozlabs.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=SIf376OZyXcpY0mdrIrP1nTWV/VE0v5g8114Fjjgl84=;\n        b=aeUBb0hCV1WfNvi/hSHER420gOxxiSMBw3szsqmc9iB9AMYq6hLqO1DtQfxqYy93Hm\n         0QU+DmOunbXDTUj3gc5cK/jng84S0mUNz9L0BTdx8sUCH3nDSms59LVKv/bfh4rSxq+T\n         4CHa9+M51eZO7LJagHtNoYl4z+l7ICyC7xlpIZXJLIFmzBpITBbn8GCQZFYAjAlqlpwX\n         D8C0/VRNWOpcP3ICgM3A0Rjxes3M6wZyijIBQLxW74EOoYr/WmRML20SDOCf3Yjk7r17\n         nfodbfShsABn03+iqAeeCfK8q+NNeHgrHDTE55PdIgLJygGt3t3/j8I+MMtYlHJDmjoW\n         BeNA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776773429; x=1777378229;\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=SIf376OZyXcpY0mdrIrP1nTWV/VE0v5g8114Fjjgl84=;\n        b=UePVg5ooAsQYFg7v18fA6WamnqwocjutJ0zs14Gp1WuBoss1v2yQZu650dUz6Wqu71\n         i8I0togkM98Ys49aw2PgqvtauZiNdx+FQIH7XAG0IKRt26ZgR23hh5/XHByMCqDQ0EyB\n         vWxvXbm9VSnLpbj/fy+O6LhzGwNxHPEP+Qx77HDKIbM0EhyI/45zpf9VxLGWR2lrESiq\n         oTECc71Q8i2bKf9cH2XXbQFdG8sgpin+jBDaUyazBwv3iID6O6JYZQ7etBQvlPgmoe/y\n         JYCBuE7sxrwvsKW7WT+/gXtXjUxgqkmny4VikyxcvcPpy3MDpl0JoqeBkPuSnXU8mj6W\n         molw==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ/Sooro8c3o7aViuN+gePe4rgjs9svLR59AxnDMHepc0GoqEfIxjabWPQmVLkyxbRGVlqgNQR+DjBtlTfA=@lists.ozlabs.org",
        "X-Gm-Message-State": "AOJu0YwPFQzyjLicGfoRjRKGjLzwaqaav+N5QBDfBt086hzeE2Uc2ogL\n\thIUjFijSO/Jc9+JJYdusZKtJgFlTPXEgGEunZW1I8fo7diMUMpKGBXYF",
        "X-Gm-Gg": "AeBDieuRd2yS7VJNuFFe0i9qyuZOGL5ap9kDquC8mSRJtG3vHp5P1LsBV2gCnvFUHw+\n\tzKh+8nEv/EPFdnlSNI6g01vGAEW79LIW3/bST1rxpcy4CtUlWjpp9sipuVqc6SIe8/cBiFdBEga\n\tzD7mQutaB9Xb4mG4mrQM7wBMKm6Fy5SiCCg4/ADNChElASKt8dcDyRTDmS+v7A+thkT6jUZEjLP\n\tjjFvV+ryMw8QJ+bITZV1EXLxLgS68r3+jnTjLSRSzYNyPCBKx3HdYilfzrZKk1gP8M0PjUxWJYi\n\tJFQd6f19fWBHK27AEMgX9/yYuIvZefXhOUBnP7cTNHo/0ltCpZHMH3+ZJDY2Iz/bOKm3DJVQhu1\n\tLgu7HdR22emqwliWSeDvd1a0PkV4d4uiQLOg5boZ9KK5Bs+xYQO4P/CsjPhcR5PVKX97ie2Du5a\n\tI3q/I3ythBXIqTIw3HNbCOgoSUcDqWMOKIM+j1BVXBoDJCgMkNfkRUkMQtkuzuQsOMIuhkxJ4SC\n\tbaX52tomiIXsqsNaJUfngIwlw==",
        "X-Received": "by 2002:a05:6a20:6a10:b0:3a2:edff:296b with SMTP id\n adf61e73a8af0-3a2edff3a32mr1965327637.21.1776773428601;\n        Tue, 21 Apr 2026 05:10:28 -0700 (PDT)",
        "From": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>",
        "To": "maddy@linux.ibm.com,\n\tmpe@ellerman.id.au,\n\tnpiggin@gmail.com,\n\tchleroy@kernel.org,\n\tpeterz@infradead.org,\n\tjpoimboe@kernel.org,\n\tjbaron@akamai.com,\n\taliceryhl@google.com,\n\trostedt@goodmis.org,\n\tardb@kernel.org,\n\tojeda@kernel.org,\n\tboqun@kernel.org,\n\tgary@garyguo.net,\n\tbjorn3_gh@protonmail.com,\n\tlossin@kernel.org,\n\ta.hindborg@kernel.org,\n\ttmgross@umich.edu,\n\tdakr@kernel.org,\n\tnathan@kernel.org,\n\tnick.desaulniers+lkml@gmail.com,\n\tmorbo@google.com,\n\tjustinstitt@google.com,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\trust-for-linux@vger.kernel.org,\n\tllvm@lists.linux.dev",
        "Cc": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>",
        "Subject": "[PATCH V12 2/4] powerpc/jump_label: adjust inline asm to be\n consistent",
        "Date": "Tue, 21 Apr 2026 17:39:56 +0530",
        "Message-ID": "<20260421120958.190430-3-mkchauras@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260421120958.190430-1-mkchauras@gmail.com>",
        "References": "<20260421120958.190430-1-mkchauras@gmail.com>",
        "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org",
        "List-Id": "<linuxppc-dev.lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>",
        "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>",
        "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>",
        "Precedence": "list",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "Added support for a new macro ARCH_STATIC_BRANCH_ASM in powerpc\nto avoid duplication of inline asm between C and Rust. This is\ninline with 'commit aecaf181651c (\"jump_label: adjust inline asm to be consistent\")'\n\nCo-developed-by: Madhavan Srinivasan <maddy@linux.ibm.com>\nSigned-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>\nReviewed-by: Alice Ryhl <aliceryhl@google.com>\nReviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>\nReviewed-by: Gary Guo <gary@garyguo.net>\nLink: https://github.com/Rust-for-Linux/linux/issues/105\nLink: https://github.com/linuxppc/issues/issues/451\nSigned-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>\n---\n arch/powerpc/include/asm/jump_label.h | 23 +++++++++++++----------\n 1 file changed, 13 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/arch/powerpc/include/asm/jump_label.h b/arch/powerpc/include/asm/jump_label.h\nindex d4eaba459a0e..3016e9c8d6bc 100644\n--- a/arch/powerpc/include/asm/jump_label.h\n+++ b/arch/powerpc/include/asm/jump_label.h\n@@ -15,14 +15,20 @@\n #define JUMP_ENTRY_TYPE\t\tstringify_in_c(FTR_ENTRY_LONG)\n #define JUMP_LABEL_NOP_SIZE\t4\n \n+#define JUMP_TABLE_ENTRY(key, label)\t\t\t\\\n+\t\".pushsection __jump_table,  \\\"aw\\\"\t\\n\\t\"\t\\\n+\t\".long 1b - ., \" label \" - .\t\t\\n\\t\"\t\\\n+\tJUMP_ENTRY_TYPE key \" - .\t\t\\n\\t\"\t\\\n+\t\".popsection \t\t\t\t\\n\\t\"\n+\n+#define ARCH_STATIC_BRANCH_ASM(key, label)\t\t\\\n+\t\"1:\tnop\t\t\t\t\\n\\t\"\t\\\n+\tJUMP_TABLE_ENTRY(key, label)\n+\n static __always_inline bool arch_static_branch(struct static_key *key, bool branch)\n {\n-\tasm goto(\"1:\\n\\t\"\n-\t\t \"nop # arch_static_branch\\n\\t\"\n-\t\t \".pushsection __jump_table,  \\\"aw\\\"\\n\\t\"\n-\t\t \".long 1b - ., %l[l_yes] - .\\n\\t\"\n-\t\t JUMP_ENTRY_TYPE \"%c0 - .\\n\\t\"\n-\t\t \".popsection \\n\\t\"\n+\tasm goto(\n+\t\t ARCH_STATIC_BRANCH_ASM(\"%c0\", \"%l[l_yes]\")\n \t\t : :  \"i\" (&((char *)key)[branch]) : : l_yes);\n \n \treturn false;\n@@ -34,10 +40,7 @@ static __always_inline bool arch_static_branch_jump(struct static_key *key, bool\n {\n \tasm goto(\"1:\\n\\t\"\n \t\t \"b %l[l_yes] # arch_static_branch_jump\\n\\t\"\n-\t\t \".pushsection __jump_table,  \\\"aw\\\"\\n\\t\"\n-\t\t \".long 1b - ., %l[l_yes] - .\\n\\t\"\n-\t\t JUMP_ENTRY_TYPE \"%c0 - .\\n\\t\"\n-\t\t \".popsection \\n\\t\"\n+\t\t JUMP_TABLE_ENTRY(\"%c0\", \"%l[l_yes]\")\n \t\t : :  \"i\" (&((char *)key)[branch]) : : l_yes);\n \n \treturn false;\n",
    "prefixes": [
        "V12",
        "2/4"
    ]
}