get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194571,
    "url": "http://patchwork.ozlabs.org/api/patches/2194571/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260209105456.1551677-3-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": "<20260209105456.1551677-3-mkchauras@gmail.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260209105456.1551677-3-mkchauras@gmail.com/",
    "date": "2026-02-09T10:54:55",
    "name": "[V4,2/3] rust: Add PowerPC support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "6056f0f41e2777ec73970d3790675203fe7e2d93",
    "submitter": {
        "id": 92575,
        "url": "http://patchwork.ozlabs.org/api/people/92575/?format=api",
        "name": "Mukesh Kumar Chaurasiya (IBM)",
        "email": "mkchauras@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260209105456.1551677-3-mkchauras@gmail.com/mbox/",
    "series": [
        {
            "id": 491491,
            "url": "http://patchwork.ozlabs.org/api/series/491491/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=491491",
            "date": "2026-02-09T10:54:53",
            "name": "Rust support for powerpc",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/491491/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194571/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194571/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-16735-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=20230601 header.b=Ah4S7gmQ;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-16735-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::433\"",
            "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=20230601 header.b=Ah4S7gmQ;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::433; helo=mail-pf1-x433.google.com;\n envelope-from=mkchauras@gmail.com; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f8hS60S2Wz1xvc\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 09 Feb 2026 21:55:34 +1100 (AEDT)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4f8hRv5mKSz3bf4;\n\tMon, 09 Feb 2026 21:55:23 +1100 (AEDT)",
            "from mail-pf1-x433.google.com (mail-pf1-x433.google.com\n [IPv6:2607:f8b0:4864:20::433])\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 4f8hRv0f3Nz2yFm\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 09 Feb 2026 21:55:22 +1100 (AEDT)",
            "by mail-pf1-x433.google.com with SMTP id\n d2e1a72fcca58-823c56765fdso2368656b3a.1\n        for <linuxppc-dev@lists.ozlabs.org>;\n Mon, 09 Feb 2026 02:55:22 -0800 (PST)",
            "from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.in.ibm.com\n ([129.41.58.2])\n        by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-824418b31c2sm10635974b3a.50.2026.02.09.02.55.14\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 09 Feb 2026 02:55:20 -0800 (PST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770634523;\n\tcv=none;\n b=H11vHdd2cJQI5xd43WwQav4PWhekVf5G4GLXXWaYFGE+niqgZD/ujQYVIFSPIT97pspGqnLpAhQh7KA/xoPOEe3KPMesTNBtO40zxyljHACOjpaou1vxFMFT1N/27qKdAikEfzCHtdJJNmnQh+7SVllUk4m3uxbnfGGUF6y26PmlXGBtPLblJVGRu8W/Od8fkVWRvShCJvhPufBmJoHP0oyrXX83FTjEl+0hT7fgvdEHRehCTT+ePjpkcrY6YaJycHbBE/Vb/8C6eY/6N2roJ0vTK5KuNO//SCfVdZKGqmdzHdxjXsbUX0TQWQdfwQLFKoPhCJ2bjtoceGEAs1V+Fg==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1770634523; c=relaxed/relaxed;\n\tbh=Cqa51jQ51mIYrhUu71vdVarPvI31OG/fcLZs5WN5E9s=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=PFOqXi1eTzCIMXEnbp8UfFgdd9Wj0JjQpC6otd0o8FnsarvP3Y4v0TRLOvDFmjsI8RfWWT/YOpw0Fo7talMQYlsiZrrFq9Ul371645rCWKBlAmlPFgryg3erUYngzvW3R//nnzdPtBqgG/4xeu919CNp6KmryOhfKwnGcf/XUpsDWQKaGedQJcyWewLjpZrN3RVTQ89c/t3GNOLXD3mHUCazyEXol59NZZFwF85x+VJDQDgE7JQL+A/1I2dziM2LMRxYRuq3PO0SuZz2xipw/pnKinkchWgnBCzb/aGFK7TZT0Xxhu4a0nspfnIutumef8/CugcvEDMfmtpA5MKylA==",
        "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=20230601 header.b=Ah4S7gmQ; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::433; helo=mail-pf1-x433.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=20230601; t=1770634521; x=1771239321;\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=Cqa51jQ51mIYrhUu71vdVarPvI31OG/fcLZs5WN5E9s=;\n        b=Ah4S7gmQJcZUvnrFesYJxUhDsSQLvEpdf3BwOn+8W2l8TuQYgYutLqk74NauBSsQNB\n         TTxib3+RINyOJzFppnfG2UfnbcrAfO53kAcROUqKbmL+BXXp/dL224C0Cv/5j0Sr1dnT\n         dZ36mxzpouPjcTUWjTnAwU/jv5GyCwlUBZ58szQzTJgIY478JKQtqw8EtPknxK8/TwWl\n         kqYyz+wJH/EU8wm7sNYiMg8dBZTSmfPVl7mkz8P6W1QSKdfPGqBLw/+4/s/qqd4tS7Je\n         69eMCAPOnEK9iWO/6jScpcDXGH3gUOjQxOSxua6+N1DqANh9q1w7F2KFEpljdQF/Ti0S\n         BSOw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1770634521; x=1771239321;\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=Cqa51jQ51mIYrhUu71vdVarPvI31OG/fcLZs5WN5E9s=;\n        b=HYMrtL/joXqsAFEAEzXuQw0NmrcvnZdBqf4FMp5eePF0bEW6x9fkKDf/pVA5+4frJB\n         z6LCx39JnTRTlfoJo36UFlPNBSKfXX70HaMqVyyWeF8/5HMxkM3SIVQjIg0qZUFpsQRz\n         vr5opmeEtQO+PeEO+4ulfqSo6hhBTqQckdwuESvrJeiZ695pSUQwe96besqTYUXOmSFk\n         cS5rZn0DU4BfbuOPbEv6vRxDYCg5h5ikh3FBI90ExBhs+VPjzSdUWfMC3pKItMe274rb\n         yzWRNTQg1pGSt1RyV72PWcNf0m8sL0R0Uq86auIQN5d60v3jrizXNoE9tNWiMftakJiM\n         aZMQ==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWKEGECqYxA0yavkSytuJEMWlgyhWfEEmbaYBDZ3y749fLN4e0Ulsvb/SHPnnKVY0yrjYMcSt6IsjFAphc=@lists.ozlabs.org",
        "X-Gm-Message-State": "AOJu0Yw6aBUrR2/qzuwtqsiwzbTgI5UmM3F8ufBv763FJd6M/r/gplVk\n\t1+E1PHxcrnKqMtbsnnIqhAtlp1dOidF0ydWFkgmi+zDUJfrRd5oTbWF8",
        "X-Gm-Gg": "AZuq6aKIJrqX0Qa4z62yR7y29qWMwBWnIUafGH3y+a/G+ztFC7VJw70awwLSCmSBbVT\n\tEFdJJrgDVAfwf/pwhfefMYz5XTS9UF55Ba+A6+NroPXoy6c376iDKNxl1A2mDbvGqH8CWNeaEbV\n\t4OjpuLif7QArgXJn/iue+XR2Op04PMPR2Qh4+Mhf1yeFSZr3qCbjy+OwNvXmFyRH32yTUp/0peZ\n\tl0wwwcjgK8ErFDKWYeLSYJ+LQBegc9VHrHcbmD/qC9YKpwTNOP/xcvRZwGsVBJt/yrKU1C9DDNl\n\tEdDdhU6QFhE7RRhlAnikPdbt75UQi71uacY8vHYwObf5pKbfRTlKjgSdgKCRuDkhmF0arKeYZi4\n\tTJEI4ZYzM1m5qxBSMKlgehfao4miV+CCjPhUbjZNt9bqVee+DZA9hzV3NoBYUy44zrsYcOvpNtR\n\t+dj8YzMpWNSrD0qpHnE3kWA1qNhPrSvN+iGOuI6CezrvUVOZne8qmIKrEn+q8lGgHeQvinog==",
        "X-Received": "by 2002:a05:6a00:17a3:b0:823:244f:1f91 with SMTP id\n d2e1a72fcca58-82441612afdmr9001382b3a.11.1770634520745;\n        Mon, 09 Feb 2026 02:55:20 -0800 (PST)",
        "From": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>",
        "To": "linkmauve@linkmauve.fr,\n\tojeda@kernel.org,\n\tboqun.feng@gmail.com,\n\tgary@garyguo.net,\n\tbjorn3_gh@protonmail.com,\n\tlossin@kernel.org,\n\ta.hindborg@kernel.org,\n\taliceryhl@google.com,\n\ttmgross@umich.edu,\n\tdakr@kernel.org,\n\tcorbet@lwn.net,\n\tmaddy@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\trostedt@goodmis.org,\n\tardb@kernel.org,\n\trust-for-linux@vger.kernel.org,\n\tlinux-doc@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org",
        "Cc": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>",
        "Subject": "[PATCH V4 2/3] rust: Add PowerPC support",
        "Date": "Mon,  9 Feb 2026 16:24:55 +0530",
        "Message-ID": "<20260209105456.1551677-3-mkchauras@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260209105456.1551677-1-mkchauras@gmail.com>",
        "References": "<20260209105456.1551677-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-Type": "text/plain; charset=UTF-8",
        "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": "From: Link Mauve <linkmauve@linkmauve.fr>\n\nFor now only Big Endian 32-bit PowerPC is supported, as that is the only\nhardware I have.  This has been tested on the Nintendo Wii so far, but I\nplan on also using it on the GameCube, Wii U and Apple G4.\n\nThese changes aren’t the only ones required to get the kernel to compile\nand link on PowerPC, libcore will also have to be changed to not use\ninteger division to format u64, u128 and core::time::Duration, otherwise\n__udivdi3() and __umoddi3() will have to be added.  I have tested this\nchange by replacing the three implementations with unimplemented!() and\nit linked just fine.\n\nSigned-off-by: Link Mauve <linkmauve@linkmauve.fr>\nSigned-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>\n---\n Documentation/rust/arch-support.rst | 1 +\n arch/powerpc/Kconfig                | 1 +\n arch/powerpc/Makefile               | 2 ++\n rust/Makefile                       | 4 +++-\n 4 files changed, 7 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/Documentation/rust/arch-support.rst b/Documentation/rust/arch-support.rst\nindex 6e6a515d0899..e26a94808e97 100644\n--- a/Documentation/rust/arch-support.rst\n+++ b/Documentation/rust/arch-support.rst\n@@ -18,6 +18,7 @@ Architecture   Level of support  Constraints\n ``arm``        Maintained        ARMv7 Little Endian only.\n ``arm64``      Maintained        Little Endian only.\n ``loongarch``  Maintained        \\-\n+``powerpc``    Experimental      32-bit Big Endian only.\n ``riscv``      Maintained        ``riscv64`` and LLVM/Clang only.\n ``um``         Maintained        \\-\n ``x86``        Maintained        ``x86_64`` only.\ndiff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig\nindex 9537a61ebae0..17db23b82e91 100644\n--- a/arch/powerpc/Kconfig\n+++ b/arch/powerpc/Kconfig\n@@ -283,6 +283,7 @@ config PPC\n \tselect HAVE_REGS_AND_STACK_ACCESS_API\n \tselect HAVE_RELIABLE_STACKTRACE\n \tselect HAVE_RSEQ\n+\tselect HAVE_RUST\t\t\tif PPC32\n \tselect HAVE_SAMPLE_FTRACE_DIRECT\tif HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS\n \tselect HAVE_SAMPLE_FTRACE_DIRECT_MULTI\tif HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS\n \tselect HAVE_SETUP_PER_CPU_AREA\t\tif PPC64\ndiff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile\nindex a58b1029592c..9fd82c75dcbd 100644\n--- a/arch/powerpc/Makefile\n+++ b/arch/powerpc/Makefile\n@@ -61,6 +61,8 @@ else\n KBUILD_LDFLAGS_MODULE += $(objtree)/arch/powerpc/lib/crtsavres.o\n endif\n \n+KBUILD_RUSTFLAGS += --target=powerpc-unknown-linux-gnu\n+\n ifdef CONFIG_CPU_LITTLE_ENDIAN\n KBUILD_CPPFLAGS\t+= -mlittle-endian\n KBUILD_LDFLAGS\t+= -EL\ndiff --git a/rust/Makefile b/rust/Makefile\nindex 4dcc2eff51cb..ae22f2c5f0b3 100644\n--- a/rust/Makefile\n+++ b/rust/Makefile\n@@ -384,13 +384,15 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \\\n \t-fstrict-flex-arrays=% -fmin-function-alignment=% \\\n \t-fzero-init-padding-bits=% -mno-fdpic \\\n \t-fdiagnostics-show-context -fdiagnostics-show-context=% \\\n-\t--param=% --param asan-% -fno-isolate-erroneous-paths-dereference\n+\t--param=% --param asan-% -fno-isolate-erroneous-paths-dereference \\\n+\t-ffixed-r2 -mmultiple -mno-readonly-in-sdata\n \n # Derived from `scripts/Makefile.clang`.\n BINDGEN_TARGET_x86\t:= x86_64-linux-gnu\n BINDGEN_TARGET_arm64\t:= aarch64-linux-gnu\n BINDGEN_TARGET_arm\t:= arm-linux-gnueabi\n BINDGEN_TARGET_loongarch\t:= loongarch64-linux-gnusf\n+BINDGEN_TARGET_powerpc\t:= powerpc-linux-gnu\n BINDGEN_TARGET_um\t:= $(BINDGEN_TARGET_$(SUBARCH))\n BINDGEN_TARGET\t\t:= $(BINDGEN_TARGET_$(SRCARCH))\n \n",
    "prefixes": [
        "V4",
        "2/3"
    ]
}