Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2228379/?format=api
{ "id": 2228379, "url": "http://patchwork.ozlabs.org/api/patches/2228379/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260426105932.2270364-4-mkchauras@gmail.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/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": "<20260426105932.2270364-4-mkchauras@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260426105932.2270364-4-mkchauras@gmail.com/", "date": "2026-04-26T10:59:28", "name": "[V15,3/7] powerpc/jump_label: adjust inline asm to be consistent", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "2688c65cddac038989da44064f159daa0b2fb495", "submitter": { "id": 92575, "url": "http://patchwork.ozlabs.org/api/people/92575/?format=api", "name": "Mukesh Kumar Chaurasiya", "email": "mkchauras@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260426105932.2270364-4-mkchauras@gmail.com/mbox/", "series": [ { "id": 501524, "url": "http://patchwork.ozlabs.org/api/series/501524/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=501524", "date": "2026-04-26T10:59:25", "name": "Rust support for powerpc", "version": 15, "mbox": "http://patchwork.ozlabs.org/series/501524/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228379/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228379/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-20124-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=F/4UTiNM;\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-20124-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::630\"", "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=F/4UTiNM;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::630; helo=mail-pl1-x630.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 4g3Nym0MfHz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 21:00:32 +1000 (AEST)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g3Nyl6RSpz2ynn;\n\tSun, 26 Apr 2026 21:00:31 +1000 (AEST)", "from mail-pl1-x630.google.com (mail-pl1-x630.google.com\n [IPv6:2607:f8b0:4864:20::630])\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 4g3Nyl1LhJz2ygY\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sun, 26 Apr 2026 21:00:31 +1000 (AEST)", "by mail-pl1-x630.google.com with SMTP id\n d9443c01a7336-2b788a98557so41958225ad.2\n for <linuxppc-dev@lists.ozlabs.org>;\n Sun, 26 Apr 2026 04:00:31 -0700 (PDT)", "from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.ibm.com.com\n ([106.51.164.157])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b5faa2f129sm256667235ad.29.2026.04.26.04.00.14\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 26 Apr 2026 04:00:26 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777201231;\n\tcv=none;\n b=SifW4b0OX180ozfx24yYMrEE/mjv4CAFwXfXskiOBMwVkyUKqmORQu35cEwSeYGOhPcVazviP3hh0/bG3gTEq1wHjbkSh2PzIdpADVRkMnGOkVwhzKl81f6ILWWfrVQJ5NQH61t9nRN25rIF4doYXvNOH/pOi7FAf6EbSSl0RiTKWghmOJjELw+ParSZu6uGakD8IJoBCh3Yndl5TiywnVJ3L4T1poxkVDXc5TxqmeIcoet6z4REB/iwZ8Uxj6bLdkz1ED8X+8cd8TfeO9IVpH8Vmgskmz0gwnkgIUTfPmFDIitwyMjXuD3ay3hqnXpUxEmq2sfo+blwdkeUWL0fzg==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777201231; c=relaxed/relaxed;\n\tbh=SIf376OZyXcpY0mdrIrP1nTWV/VE0v5g8114Fjjgl84=;\n\th=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Qg2ofBUltJcJrvBjY6Qs4ppf5/2GTmPdwEomhdXpTrgD7RzR5IouQl/Gbrg5OImP7lX0G+ldR31gzpx5mDj09wWwNzfS4e6y61+608x4AcYNfmUvtzGXah4EdGnlbHsAIFdpZGiL7pDADFqeXYGzhm8kECGNE+HZGy+8GlIEp/zPJgQCDVk9urRI1xEQD0gwHcuPLwsi8/ml5TDnVQ5n/oRDyTiImvvPxf8NS9L/lUQzzuWKx3s6F7qpgn+4aOl6idrMf6S2E2gXGrKp7aVl+rEGNGym8Fp4PwZN1Saw9+jvHBP+g9GlhMhNA2qGpkL/PbsNYS6FXyDHQRms1z8fUA==", "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=F/4UTiNM; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::630; helo=mail-pl1-x630.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=1777201229; x=1777806029;\n darn=lists.ozlabs.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to;\n bh=SIf376OZyXcpY0mdrIrP1nTWV/VE0v5g8114Fjjgl84=;\n b=F/4UTiNMgP0L8RvZzKohFWWtYGvaOgJXtvoutEvfPU0fJHutoezhhnTuPz3Fl0E2eY\n v73XuRjv7gkYtOrvWc1wiDyFNt8i7XiTvR4HnVw4DyWUQF2xvvwORtjuSiq5sInyNv5i\n lnvZ69zIDWEoIVPSN8zlmgwTpNg4hc07szny0kC9nnmOnDZFBi9OyZvymsjSo5EEgzw9\n apcqkcq6+mzxQfogskPM+Z4170Im/dqaSBwjKEmqFiAEV/fbP3QyDaZWQcpJVo2hn0kG\n ge0koUOSkFbLOczlL2+bl4VLy82/FcFuMp6oqKsVtGa5RAOaf3p+lOmDPBqB5sPCQvC8\n /pTg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777201229; x=1777806029;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=SIf376OZyXcpY0mdrIrP1nTWV/VE0v5g8114Fjjgl84=;\n b=Bh5JF3ZMZFlEhevEaznGMdydXp/C13iXfqXr0eRQv1oZTTvZGK/KZFqmFlnhHQuWi7\n R/cJ2jVuiEYD5AHbqDacvhNW/RmC1MZb54qaYxyLOSoLxLqLqjihYlSFYPvUJ0z9OCt6\n BcZbJpQ4B5TDSqt0P0CSr5w7hxnM9t87JzEFINlAGH+jQnGzepbJ/6Q6RP/FhULCcht9\n KNCG0Mm2bIQpNW3lvddCsHhgwBJR09Gnpr3QGYXMFJxYviKh5C/oqTpLBh63MGJbag3s\n LJ6VdnN2ndBxREe5+7zpvh8bOrgMG8DgjZxmd4YupNLjUA496k6p9Q64cXIrw6ZQF4B4\n MyZw==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ8/sMj+0SRjiq4ht9IYAzbzJ+U9OXV4YzqPgYUrtJJAlcE+6rQb5B/oVwE1FquxxJyRZRhGeuLFNBG/tGQ=@lists.ozlabs.org", "X-Gm-Message-State": "AOJu0YyqMyJj404Md2zjdN4C8uSInqFkJE3pl3FDZhFieXwotTJ23yKz\n\tLZ2l9izQtL6bdVfU8QjJ+yuMjV50/km2IaPI/GSihlh71D1ZIL04Em0p", "X-Gm-Gg": "AeBDietTyyo3HA6XewXAfpj4CVQLXpyqE11lR+AIuZzrDE8PBg1O+ZEsymw0lQeHtf4\n\tF8FtVrZvd20iEsgitzcZ0i65inG09ha4RULGTpODymkDUdCqRVXS0glXI0tfWR/9/eSVbP1ngLE\n\teuMB8aRDi/TC5E8VKsLfnf5qU9a4mV+BmNHjQAuI/WJ66X8QGtQ7x/frfJpnwIQvyg0QSnutc7z\n\tRl3kb90w6b59956CJWCu2SFxqFTRSXmeeZsmMuOIZihjsia9AZUk59gOWML6SB/zM5JQISux60y\n\t/Pr542X1I3Hupad98otca/B/WjWPxEklXJ/2lG00KzJ9qGpSZ///UulaKScnPGZH6dAvfG5iHiM\n\tT4wyMGtwDXXwZNlTRx4wPTZByOb0DkS/6qqKU0M4ei8H/Tj81nvVzUNKs7LbIc6thhoukd8oT+c\n\tCHz/au0/gEVq9LDc9K3Vd1VVvgH2g8Z6GJYAHTZJP1Nq7i3qTtXBAl4OmMdRu5kIin1wUXzA4NB\n\taMsvahn5asTKThJCpWUDUwofA==", "X-Received": "by 2002:a17:902:8649:b0:2b4:65ab:57cd with SMTP id\n d9443c01a7336-2b5f9fbdd39mr296814685ad.36.1777201228981;\n Sun, 26 Apr 2026 04:00: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\tdaniel.almeida@collabora.com,\n\tfujita.tomonori@gmail.com,\n\tviresh.kumar@linaro.org,\n\tprafulrai522@gmail.com,\n\tgregkh@linuxfoundation.org,\n\tarnd@arndb.de,\n\ttamird@kernel.org,\n\tmark.rutland@arm.com,\n\tmkchauras@gmail.com,\n\tlyude@redhat.com,\n\tlina+kernel@asahilina.net,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\trust-for-linux@vger.kernel.org,\n\tllvm@lists.linux.dev", "Subject": "[PATCH V15 3/7] powerpc/jump_label: adjust inline asm to be\n consistent", "Date": "Sun, 26 Apr 2026 16:29:28 +0530", "Message-ID": "<20260426105932.2270364-4-mkchauras@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260426105932.2270364-1-mkchauras@gmail.com>", "References": "<20260426105932.2270364-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": [ "V15", "3/7" ] }