get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216719,
    "url": "http://patchwork.ozlabs.org/api/patches/2216719/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/sparclinux/patch/20260327061704.3707577-9-hch@lst.de/",
    "project": {
        "id": 10,
        "url": "http://patchwork.ozlabs.org/api/projects/10/?format=api",
        "name": "Linux SPARC Development ",
        "link_name": "sparclinux",
        "list_id": "sparclinux.vger.kernel.org",
        "list_email": "sparclinux@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260327061704.3707577-9-hch@lst.de>",
    "list_archive_url": null,
    "date": "2026-03-27T06:16:40",
    "name": "[08/28] xor: split xor.h",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2a25225bbff539e1eb0737500e3cba52c6444fb3",
    "submitter": {
        "id": 82,
        "url": "http://patchwork.ozlabs.org/api/people/82/?format=api",
        "name": "Christoph Hellwig",
        "email": "hch@lst.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/sparclinux/patch/20260327061704.3707577-9-hch@lst.de/mbox/",
    "series": [
        {
            "id": 497694,
            "url": "http://patchwork.ozlabs.org/api/series/497694/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/sparclinux/list/?series=497694",
            "date": "2026-03-27T06:16:33",
            "name": "[01/28] xor: assert that xor_blocks is not call from interrupt context",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497694/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216719/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216719/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=VxWn=B3=vger.kernel.org=sparclinux+bounces-6583-patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "sparclinux@vger.kernel.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "patchwork-incoming@ozlabs.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256\n header.s=bombadil.20210309 header.b=yfEkCSHT;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=vxwn=b3=vger.kernel.org=sparclinux+bounces-6583-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c09:e001:a7::12fc:5321\"\n arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=lst.de",
            "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256\n header.s=bombadil.20210309 header.b=yfEkCSHT;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=sparclinux+bounces-6583-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org\n header.b=\"yfEkCSHT\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=198.137.202.133",
            "smtp.subspace.kernel.org;\n dmarc=fail (p=none dis=none) header.from=lst.de",
            "smtp.subspace.kernel.org;\n spf=none smtp.mailfrom=bombadil.srs.infradead.org"
        ],
        "Received": [
            "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\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 4fhrBC2qZCz1yFr\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 17:21:07 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fhrBC2JPWz4wCX\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 17:21:07 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fhrBC2GGBz4wT1; Fri, 27 Mar 2026 17:21:07 +1100 (AEDT)",
            "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\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 gandalf.ozlabs.org (Postfix) with ESMTPS id 4fhrB73z3Cz4wCX\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 27 Mar 2026 17:21:03 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 1A0E7307C23B\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 27 Mar 2026 06:20:21 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 090F437F746;\n\tFri, 27 Mar 2026 06:19:57 +0000 (UTC)",
            "from bombadil.infradead.org (bombadil.infradead.org\n [198.137.202.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 57A2F37F009;\n\tFri, 27 Mar 2026 06:19:52 +0000 (UTC)",
            "from\n 2a02-8389-2341-5b80-d601-7564-c2e0-491c.cable.dynamic.v6.surfer.at\n ([2a02:8389:2341:5b80:d601:7564:c2e0:491c] helo=localhost)\n\tby bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w60Xf-00000006lQY-1pyV;\n\tFri, 27 Mar 2026 06:19:35 +0000"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774592467; cv=pass;\n\tb=DBXd2fQQ1ZAkfJM9fPXmddWFeUSJyoBjfdFnnIacEdRlM3PPDl5/ECTwkosnlAFAkEhhRLCSF4n9YtzurOzL/AsIfrREpV26R4O1vdY14BqRxBqcO3pIGHYXc1QP0fNpAgpu+WSn1itwMNFoQaFV7IiovUe9ZmPyPscllIZkfaEqouzeobzihg+ClrwXGFcJ9L/O/1+YTiPw2q0v5uUa6tfF8Rd0T0Gw49escqkcPWXwMPmsDndvw3LAsfQh56Hm36lvWqShFg8dQ/Mdf8lIdY7jHJ4V/bbfLQhTKlf/JHGp86V28fccF5xfPUXNMNv6KtK/IMhUzYbVkQkoy0Wqig==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774592396; cv=none;\n b=TCXRb7nUSuINadXgBHs/9uJDwFWn51PmIyVNJJP08zMoEzAQHZD8dXr/WujO+gx8r6Rxl+7rySD6K7kr5A+emW0H8EVSIiCJaCOVxkZHUfiwE+gxwe6BLw10R/zqcS84/R5w3HPrWUsNucs2XTHxLsvFzF/C80GYIJ/+lJZRn9s="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774592467; c=relaxed/relaxed;\n\tbh=zgZY5gyqgBp4tTU2Jxd3jfKktDHbBXxS4d4BaNz441Q=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=nYPR3Ft0XepPW9s1JQwvGadx8vy/dYmfAl51eVag8zTtLp++Mq2Pxv88KikHfLGHuqXItOwzEfwJx+gKfUqmzLc2h4DaZHTAwO5lS/6APEzBjDSCCX1bxJA1PbVMniTIUyllu7s3vQUIVt2TuQ9igR3yu3xnksbgoYXdi33Rj4wSSWXY30XfstGW0jPyghoVT9gxh6mli+RHtI5J8Gs/bR4DsmNVS8lMqYzN+eb0gx+B/IfT7NkqJIalhNoMI2nJd0JniKSJ6qZf9IQ8EgO4PPsx9EUPQKT5KeHuXzwcuUrf17BJwqnzxfEHgLlobf0wyOOv+eD5rud8LiHP5bHRrw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774592396; c=relaxed/simple;\n\tbh=DTJ32nJRuvLsoD7EPPRYriqNKPMsrwImpNIexHED7r0=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=l7RvyQ2N+nE2jUGsAX0FF1xniopwPcBdecoPSLSIN0fXNfT6gVQlUr0Lco5Hr5tDIE5MmvGJcJFgjDI7Q+d3rnjlZpmmCR9NoKTF9/Fz9wFxfk9bXi0U63wF2/JNyq6BAy1p4EatUUipJsS33nhLna5hoT5XibM74Ry8LRa7tdU="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=lst.de; dkim=pass (2048-bit key;\n secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256\n header.s=bombadil.20210309 header.b=yfEkCSHT; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=sparclinux+bounces-6583-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dmarc=fail (p=none dis=none) header.from=lst.de;\n spf=none smtp.mailfrom=bombadil.srs.infradead.org;\n dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org\n header.b=yfEkCSHT; arc=none smtp.client-ip=198.137.202.133"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding:\n\tMIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender\n\t:Reply-To:Content-Type:Content-ID:Content-Description;\n\tbh=zgZY5gyqgBp4tTU2Jxd3jfKktDHbBXxS4d4BaNz441Q=; b=yfEkCSHTfbfsn1TRlEEjIzQ671\n\tfmhW9TrRTbbNWW34B1vT8HHQwt0Mmf+h8UelpWfN14UEk/zNIZ/KYci0hy4yXbjJqBnnszm05OFE0\n\tWu+BMvbSQhpya8AK/Wr4HTZjEH9bOEN9A2hNq3oeKH9S3bLUvqCy9yrtrdWEXdUkiju072eK58638\n\t8etpGdUZxepINIklmgyJJSubCenFljSmazSGOprSr3JdOYRQxBPBdpEJ6DZwrsjb8CC72D9NWar/O\n\tsfEtzCe+AtxFJ14atSNRYlUj9sv+OQsyqBc5ZKkmMYF0qNHMSiAoWQAQ4tStDGxzMsu1oX7wMSnIK\n\tGN62Az/Q==;",
        "From": "Christoph Hellwig <hch@lst.de>",
        "To": "Andrew Morton <akpm@linux-foundation.org>",
        "Cc": "Richard Henderson <richard.henderson@linaro.org>,\n\tMatt Turner <mattst88@gmail.com>,\n\tMagnus Lindholm <linmag7@gmail.com>,\n\tRussell King <linux@armlinux.org.uk>,\n\tCatalin Marinas <catalin.marinas@arm.com>,\n\tWill Deacon <will@kernel.org>,\n\tArd Biesheuvel <ardb@kernel.org>,\n\tHuacai Chen <chenhuacai@kernel.org>,\n\tWANG Xuerui <kernel@xen0n.name>,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tNicholas Piggin <npiggin@gmail.com>,\n\t\"Christophe Leroy (CS GROUP)\" <chleroy@kernel.org>,\n\tPaul Walmsley <pjw@kernel.org>,\n\tPalmer Dabbelt <palmer@dabbelt.com>,\n\tAlbert Ou <aou@eecs.berkeley.edu>,\n\tAlexandre Ghiti <alex@ghiti.fr>,\n\tHeiko Carstens <hca@linux.ibm.com>,\n\tVasily Gorbik <gor@linux.ibm.com>,\n\tAlexander Gordeev <agordeev@linux.ibm.com>,\n\tChristian Borntraeger <borntraeger@linux.ibm.com>,\n\tSven Schnelle <svens@linux.ibm.com>,\n\t\"David S. Miller\" <davem@davemloft.net>,\n\tAndreas Larsson <andreas@gaisler.com>,\n\tRichard Weinberger <richard@nod.at>,\n\tAnton Ivanov <anton.ivanov@cambridgegreys.com>,\n\tJohannes Berg <johannes@sipsolutions.net>,\n\tThomas Gleixner <tglx@kernel.org>,\n\tIngo Molnar <mingo@redhat.com>,\n\tBorislav Petkov <bp@alien8.de>,\n\tDave Hansen <dave.hansen@linux.intel.com>,\n\tx86@kernel.org,\n\t\"H. Peter Anvin\" <hpa@zytor.com>,\n\tHerbert Xu <herbert@gondor.apana.org.au>,\n\tDan Williams <dan.j.williams@intel.com>,\n\tChris Mason <clm@fb.com>,\n\tDavid Sterba <dsterba@suse.com>,\n\tArnd Bergmann <arnd@arndb.de>,\n\tSong Liu <song@kernel.org>,\n\tYu Kuai <yukuai@fnnas.com>,\n\tLi Nan <linan122@huawei.com>,\n\t\"Theodore Ts'o\" <tytso@mit.edu>,\n\t\"Jason A. Donenfeld\" <Jason@zx2c4.com>,\n\tlinux-alpha@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.org,\n\tloongarch@lists.linux.dev,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-riscv@lists.infradead.org,\n\tlinux-s390@vger.kernel.org,\n\tsparclinux@vger.kernel.org,\n\tlinux-um@lists.infradead.org,\n\tlinux-crypto@vger.kernel.org,\n\tlinux-btrfs@vger.kernel.org,\n\tlinux-arch@vger.kernel.org,\n\tlinux-raid@vger.kernel.org",
        "Subject": "[PATCH 08/28] xor: split xor.h",
        "Date": "Fri, 27 Mar 2026 07:16:40 +0100",
        "Message-ID": "<20260327061704.3707577-9-hch@lst.de>",
        "X-Mailer": "git-send-email 2.47.3",
        "In-Reply-To": "<20260327061704.3707577-1-hch@lst.de>",
        "References": "<20260327061704.3707577-1-hch@lst.de>",
        "Precedence": "bulk",
        "X-Mailing-List": "sparclinux@vger.kernel.org",
        "List-Id": "<sparclinux.vger.kernel.org>",
        "List-Subscribe": "<mailto:sparclinux+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:sparclinux+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-SRS-Rewrite": "SMTP reverse-path rewritten from <hch@infradead.org> by\n bombadil.infradead.org. See http://www.infradead.org/rpr.html",
        "X-Spam-Status": "No, score=-0.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DMARC_NONE,HEADER_FROM_DIFFERENT_DOMAINS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "Keep xor.h for the public API, and split the struct xor_block_template\ndefinition that is only needed by the xor.ko core and\narchitecture-specific optimizations into a separate xor_impl.h header.\n\nSigned-off-by: Christoph Hellwig <hch@lst.de>\n---\n arch/arm/lib/xor-neon.c       |  1 +\n arch/arm64/lib/xor-neon.c     |  1 +\n arch/s390/lib/xor.c           |  2 +-\n include/linux/raid/xor.h      | 22 +---------------------\n include/linux/raid/xor_impl.h | 25 +++++++++++++++++++++++++\n lib/raid/xor/xor-core.c       |  1 +\n 6 files changed, 30 insertions(+), 22 deletions(-)\n create mode 100644 include/linux/raid/xor_impl.h",
    "diff": "diff --git a/arch/arm/lib/xor-neon.c b/arch/arm/lib/xor-neon.c\nindex cf57fca97908..282980b9bf2a 100644\n--- a/arch/arm/lib/xor-neon.c\n+++ b/arch/arm/lib/xor-neon.c\n@@ -6,6 +6,7 @@\n  */\n \n #include <linux/raid/xor.h>\n+#include <linux/raid/xor_impl.h>\n #include <linux/module.h>\n \n MODULE_DESCRIPTION(\"NEON accelerated XOR implementation\");\ndiff --git a/arch/arm64/lib/xor-neon.c b/arch/arm64/lib/xor-neon.c\nindex 8fffebfa17b2..351aba92d932 100644\n--- a/arch/arm64/lib/xor-neon.c\n+++ b/arch/arm64/lib/xor-neon.c\n@@ -7,6 +7,7 @@\n  */\n \n #include <linux/raid/xor.h>\n+#include <linux/raid/xor_impl.h>\n #include <linux/module.h>\n #include <asm/neon-intrinsics.h>\n \ndiff --git a/arch/s390/lib/xor.c b/arch/s390/lib/xor.c\nindex 5363e4c2462d..3bbe21b40e66 100644\n--- a/arch/s390/lib/xor.c\n+++ b/arch/s390/lib/xor.c\n@@ -8,7 +8,7 @@\n \n #include <linux/types.h>\n #include <linux/export.h>\n-#include <linux/raid/xor.h>\n+#include <linux/raid/xor_impl.h>\n #include <asm/xor.h>\n \n static void xor_xc_2(unsigned long bytes, unsigned long * __restrict p1,\ndiff --git a/include/linux/raid/xor.h b/include/linux/raid/xor.h\nindex 51b811b62322..02bda8d99534 100644\n--- a/include/linux/raid/xor.h\n+++ b/include/linux/raid/xor.h\n@@ -7,24 +7,4 @@\n extern void xor_blocks(unsigned int count, unsigned int bytes,\n \tvoid *dest, void **srcs);\n \n-struct xor_block_template {\n-        struct xor_block_template *next;\n-        const char *name;\n-        int speed;\n-\tvoid (*do_2)(unsigned long, unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict);\n-\tvoid (*do_3)(unsigned long, unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict);\n-\tvoid (*do_4)(unsigned long, unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict);\n-\tvoid (*do_5)(unsigned long, unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict,\n-\t\t     const unsigned long * __restrict);\n-};\n-\n-#endif\n+#endif /* _XOR_H */\ndiff --git a/include/linux/raid/xor_impl.h b/include/linux/raid/xor_impl.h\nnew file mode 100644\nindex 000000000000..a1890cd66812\n--- /dev/null\n+++ b/include/linux/raid/xor_impl.h\n@@ -0,0 +1,25 @@\n+/* SPDX-License-Identifier: GPL-2.0 */\n+#ifndef _XOR_IMPL_H\n+#define _XOR_IMPL_H\n+\n+struct xor_block_template {\n+\tstruct xor_block_template *next;\n+\tconst char *name;\n+\tint speed;\n+\tvoid (*do_2)(unsigned long, unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict);\n+\tvoid (*do_3)(unsigned long, unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict);\n+\tvoid (*do_4)(unsigned long, unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict);\n+\tvoid (*do_5)(unsigned long, unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict,\n+\t\t     const unsigned long * __restrict);\n+};\n+\n+#endif /* _XOR_IMPL_H */\ndiff --git a/lib/raid/xor/xor-core.c b/lib/raid/xor/xor-core.c\nindex e6e593e404fb..db1824011a12 100644\n--- a/lib/raid/xor/xor-core.c\n+++ b/lib/raid/xor/xor-core.c\n@@ -9,6 +9,7 @@\n #include <linux/module.h>\n #include <linux/gfp.h>\n #include <linux/raid/xor.h>\n+#include <linux/raid/xor_impl.h>\n #include <linux/jiffies.h>\n #include <linux/preempt.h>\n #include <asm/xor.h>\n",
    "prefixes": [
        "08/28"
    ]
}