get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217927,
    "url": "http://patchwork.ozlabs.org/api/patches/2217927/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260331012508.17410-2-ddiss@suse.de/",
    "project": {
        "id": 12,
        "url": "http://patchwork.ozlabs.org/api/projects/12/?format=api",
        "name": "Linux CIFS Client",
        "link_name": "linux-cifs-client",
        "list_id": "linux-cifs.vger.kernel.org",
        "list_email": "linux-cifs@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260331012508.17410-2-ddiss@suse.de>",
    "list_archive_url": null,
    "date": "2026-03-31T00:37:51",
    "name": "[1/3] build_assert: add ccan build_assert.h header",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "186b04c69379c9a2dde00bb01a41059f1eb2526f",
    "submitter": {
        "id": 26890,
        "url": "http://patchwork.ozlabs.org/api/people/26890/?format=api",
        "name": "David Disseldorp",
        "email": "ddiss@suse.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260331012508.17410-2-ddiss@suse.de/mbox/",
    "series": [
        {
            "id": 498116,
            "url": "http://patchwork.ozlabs.org/api/series/498116/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=498116",
            "date": "2026-03-31T00:37:50",
            "name": "mount.cifs: minor buflen tracking cleanups",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498116/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217927/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217927/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-10590-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-cifs@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10590-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=195.135.223.130",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=suse.de",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=suse.de",
            "smtp-out1.suse.de;\n\tnone"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\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 4fl9Sy1pR0z1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 12:26:58 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id AC9F13057EA6\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 01:25:37 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1F2313346A6;\n\tTue, 31 Mar 2026 01:25:37 +0000 (UTC)",
            "from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id C30EC3370EA\n\tfor <linux-cifs@vger.kernel.org>; Tue, 31 Mar 2026 01:25:35 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org\n [IPv6:2a07:de40:b281:104:10:150:64:97])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby smtp-out1.suse.de (Postfix) with ESMTPS id EB63E4D5B8;\n\tTue, 31 Mar 2026 01:25:33 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 67A974A0A2;\n\tTue, 31 Mar 2026 01:25:32 +0000 (UTC)",
            "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n\tby imap1.dmz-prg2.suse.org with ESMTPSA\n\tid aJ4aB4wiy2mpbgAAD6G6ig\n\t(envelope-from <ddiss@suse.de>); Tue, 31 Mar 2026 01:25:32 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774920337; cv=none;\n b=WRa3YU4Axr4OporhSOaNEpt7FBJxAvV/wpBxpplnVdsa5IQPObFZGjk0U3ZurrFzToX3MeG3rCgivgLMMap828JKxfjIglpk7xPiTE+1n3Oc08sfMhoKpNmy5PqsxF5jZSPjHebPKc3HmnVu+YLy6e33owejKxSbyk1dYNtgS1g=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774920337; c=relaxed/simple;\n\tbh=xvOs+VuI8lodnsrKPZcKRQyPjhUmdZtf0Tzh/Asj+Ms=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=LQ6BSZDq78Z6Yp3jhheZAeth78BVdDby6aby5ZL8h7Cs+1E9XQW/8qqa9SQ547BR8Ecyi/waIWbeeSb0y9Z12LQqNd52wKqEPbRRX/oVv1+fjq3LJLCF4KkrfzRvRa9Jkf8vlYFEz/HSMrzY4DMELl0wwECe7nptNA+tk8LUeWg=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=suse.de;\n spf=pass smtp.mailfrom=suse.de; arc=none smtp.client-ip=195.135.223.130",
        "From": "David Disseldorp <ddiss@suse.de>",
        "To": "linux-cifs@vger.kernel.org",
        "Cc": "Steve French <smfrench@gmail.com>,\n\tDavid Disseldorp <ddiss@suse.de>",
        "Subject": "[PATCH 1/3] build_assert: add ccan build_assert.h header",
        "Date": "Tue, 31 Mar 2026 11:37:51 +1100",
        "Message-ID": "<20260331012508.17410-2-ddiss@suse.de>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20260331012508.17410-1-ddiss@suse.de>",
        "References": "<20260331012508.17410-1-ddiss@suse.de>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-cifs@vger.kernel.org",
        "List-Id": "<linux-cifs.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Rspamd-Pre-Result": [
            "action=no action;\n\tmodule=replies;\n\tMessage is reply to one we originated",
            "action=no action;\n\tmodule=replies;\n\tMessage is reply to one we originated"
        ],
        "X-Rspamd-Server": "rspamd2.dmz-prg2.suse.org",
        "X-Spamd-Result": "default: False [-4.00 / 50.00];\n\tREPLY(-4.00)[]",
        "X-Rspamd-Queue-Id": "EB63E4D5B8",
        "X-Rspamd-Action": "no action",
        "X-Spam-Flag": "NO",
        "X-Spam-Score": "-4.00",
        "X-Spam-Level": ""
    },
    "content": "Obtained from https://github.com/rustyrussell/ccan with HEAD\n050dc66dc2de3d8b150817c6bba648f74b12cccf .\nbuild_assert.h is licensed CC0 (Public domain).\n\nSigned-off-by: David Disseldorp <ddiss@suse.de>\n---\n build_assert.h | 40 ++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 40 insertions(+)\n create mode 100644 build_assert.h",
    "diff": "diff --git a/build_assert.h b/build_assert.h\nnew file mode 100644\nindex 0000000..b9ecd84\n--- /dev/null\n+++ b/build_assert.h\n@@ -0,0 +1,40 @@\n+/* CC0 (Public domain) - see LICENSE file for details */\n+#ifndef CCAN_BUILD_ASSERT_H\n+#define CCAN_BUILD_ASSERT_H\n+\n+/**\n+ * BUILD_ASSERT - assert a build-time dependency.\n+ * @cond: the compile-time condition which must be true.\n+ *\n+ * Your compile will fail if the condition isn't true, or can't be evaluated\n+ * by the compiler.  This can only be used within a function.\n+ *\n+ * Example:\n+ *\t#include <stddef.h>\n+ *\t...\n+ *\tstatic char *foo_to_char(struct foo *foo)\n+ *\t{\n+ *\t\t// This code needs string to be at start of foo.\n+ *\t\tBUILD_ASSERT(offsetof(struct foo, string) == 0);\n+ *\t\treturn (char *)foo;\n+ *\t}\n+ */\n+#define BUILD_ASSERT(cond) \\\n+\tdo { (void) sizeof(char [1 - 2*!(cond)]); } while(0)\n+\n+/**\n+ * BUILD_ASSERT_OR_ZERO - assert a build-time dependency, as an expression.\n+ * @cond: the compile-time condition which must be true.\n+ *\n+ * Your compile will fail if the condition isn't true, or can't be evaluated\n+ * by the compiler.  This can be used in an expression: its value is \"0\".\n+ *\n+ * Example:\n+ *\t#define foo_to_char(foo)\t\t\t\t\t\\\n+ *\t\t ((char *)(foo)\t\t\t\t\t\t\\\n+ *\t\t  + BUILD_ASSERT_OR_ZERO(offsetof(struct foo, string) == 0))\n+ */\n+#define BUILD_ASSERT_OR_ZERO(cond) \\\n+\t(sizeof(char [1 - 2*!(cond)]) - 1)\n+\n+#endif /* CCAN_BUILD_ASSERT_H */\n",
    "prefixes": [
        "1/3"
    ]
}