get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2222457,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2222457/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260412013451.2929001-4-sjg@chromium.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260412013451.2929001-4-sjg@chromium.org>",
    "date": "2026-04-12T01:34:31",
    "name": "[03/12] test: Add a private buffer for tests",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "dce45c198c3fb300ef834ce7deee8cd6d31bcab7",
    "submitter": {
        "id": 6170,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/6170/?format=api",
        "name": "Simon Glass",
        "email": "sjg@chromium.org"
    },
    "delegate": {
        "id": 3184,
        "url": "http://patchwork.ozlabs.org/api/1.1/users/3184/?format=api",
        "username": "sjg",
        "first_name": "Simon",
        "last_name": "Glass",
        "email": "sjg@chromium.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260412013451.2929001-4-sjg@chromium.org/mbox/",
    "series": [
        {
            "id": 499582,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499582/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499582",
            "date": "2026-04-12T01:34:28",
            "name": "test: Add support for passing arguments to C unit tests",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499582/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2222457/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222457/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=Morzzdnh;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org\n header.b=\"Morzzdnh\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=sjg@chromium.org"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\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 4ftY5M324Gz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 12 Apr 2026 11:35:35 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id D66D1841C2;\n\tSun, 12 Apr 2026 03:35:19 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id F311C8418C; Sun, 12 Apr 2026 03:35:17 +0200 (CEST)",
            "from mail-ot1-x333.google.com (mail-ot1-x333.google.com\n [IPv6:2607:f8b0:4864:20::333])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id BA6DB841CD\n for <u-boot@lists.denx.de>; Sun, 12 Apr 2026 03:35:14 +0200 (CEST)",
            "by mail-ot1-x333.google.com with SMTP id\n 46e09a7af769-7dbccf6a23dso3241606a34.2\n for <u-boot@lists.denx.de>; Sat, 11 Apr 2026 18:35:14 -0700 (PDT)",
            "from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7dc2d1aca3asm4242826a34.6.2026.04.11.18.35.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 11 Apr 2026 18:35:08 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=chromium.org; s=google; t=1775957711; x=1776562511; darn=lists.denx.de;\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=51Zbu+as9QPdTIi+ZwM+DK7wFdtCBdXGd+3dumyVnoA=;\n b=MorzzdnhblSmY7nvefpiS98z9rmiNYsVpfTsvrV+PtLvd4J5rGH/fXiieGHA6ZyPhz\n DuZao1v1qB5ZCjkfSiuh0nVVhsFooLoUh4vqvxNt7EUCadqfaNy9FqH+rx/05AQR5Mh7\n 41MQfjQtmZgTcHeHJH14jwMJO4XnIRU89n7kE=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775957711; x=1776562511;\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=51Zbu+as9QPdTIi+ZwM+DK7wFdtCBdXGd+3dumyVnoA=;\n b=JN09fXbqdQviVC9V3JiXhB7k29rRDrU4qgGmXsVMkiglUNW1CZU77gWj2MozYkIXCr\n GjcMu39uuZyfx6rnGKeB1OglVv3lQ5T+DfBcdO8mUxUy1E3kw1i9auL71vUaI0AVZ8HJ\n ICXQBSvf2HtzVMipJfY7LreF1oQ032TYEb2MktS6kHARk6PYJyu/QcRPQ7nf67K6GeN6\n Z1gU7rTrVovU9NiXWEFWQaJdqN6Q/adipo0Ss27gGjKNXkMg4wjzsxujyMZR4ASev1DN\n 83cnVm1S+sVxtvR1KfEjdSnmOFImvFYva98fgdI8H8IQ1AWmK4ZnT5gh65umVV6e8kOp\n /Zbg==",
        "X-Gm-Message-State": "AOJu0YxpyKe4VfcnJOXbkoilVBD65joZfZdZ8dqgnlf/7um5MdexOG3E\n +YzFOF9xwhf2timewK/DAgrE0wdSo3ZriyCsZm9V/KvGneE3AkLeEXIWmd7Fd03XDdp+q0F1iHq\n J3qbJoA==",
        "X-Gm-Gg": "AeBDieuOrifHYqrocC/jg78jUOTSHmIpkTFVE8F3hST0JyHAVvHOmBAtzHpHj75/GF+\n XnNb36ei5b/jKTdfK3gxlmq3dTTEfhkqZrMU2gW+uQuhHqlOEzjT/tQnctNpKVEo1fMMfLDspDv\n SF2u1eKBVTJDmToutD2EFxvXUju1QkFHWb1D8ru7VLztA8AGkAvXb0agRHqbJRelZq3gqBrm7uQ\n 37HC/lT7Gz2PogwrWKs6/b8jdESwjacw7Fm4xB9+KGDBHalLxKxDX7vHN/NFmqtbKqZLC3P4UtY\n x4kdd3UQlucV5vS5THJ7igmw+NU5MKKCWUycBJG92jjntMb/ueMZW9MeKIoGNzO0LmuDwdCK/X6\n iFfS6Vx8Ue4ek3SJLsc4VCbU/1MhG4KgEHnnWnL+4RirJa4x8JuQEqgp1kX6QT49WbAl9LgIGYB\n tSK/dP52ffMDJslFW9y1RGDdwW339c",
        "X-Received": "by 2002:a05:6830:67d7:b0:7d7:ef0a:1ce9 with SMTP id\n 46e09a7af769-7dc27f0b2d3mr5699535a34.14.1775957711265;\n Sat, 11 Apr 2026 18:35:11 -0700 (PDT)",
        "From": "Simon Glass <sjg@chromium.org>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Heinrich Schuchardt <xypron.glpk@gmx.de>, Tom Rini <trini@konsulko.com>,\n Simon Glass <simon.glass@canonical.com>, Simon Glass <sjg@chromium.org>",
        "Subject": "[PATCH 03/12] test: Add a private buffer for tests",
        "Date": "Sat, 11 Apr 2026 19:34:31 -0600",
        "Message-ID": "<20260412013451.2929001-4-sjg@chromium.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260412013451.2929001-1-sjg@chromium.org>",
        "References": "<20260412013451.2929001-1-sjg@chromium.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "From: Simon Glass <simon.glass@canonical.com>\n\nAdd a priv[] buffer to struct unit_test_state that tests can use for\ntheir own data. This avoids the need to allocate memory or use global\nvariables for test-specific state.\n\nSigned-off-by: Simon Glass <simon.glass@canonical.com>\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n include/test/test.h | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/include/test/test.h b/include/test/test.h\nindex 0f2b68a5dee..f8a80a88959 100644\n--- a/include/test/test.h\n+++ b/include/test/test.h\n@@ -9,6 +9,8 @@\n #include <malloc.h>\n #include <linux/bitops.h>\n \n+#define UT_PRIV_SIZE\t256\n+\n /**\n  * struct ut_stats - Statistics about tests run\n  *\n@@ -53,6 +55,7 @@ struct ut_stats {\n  * @old_bloblist: stores the old gd->bloblist pointer\n  * @expect_str: Temporary string used to hold expected string value\n  * @actual_str: Temporary string used to hold actual string value\n+ * @priv: Private data for tests to use as needed\n  */\n struct unit_test_state {\n \tstruct ut_stats cur;\n@@ -78,6 +81,7 @@ struct unit_test_state {\n \tvoid *old_bloblist;\n \tchar expect_str[512];\n \tchar actual_str[512];\n+\tchar priv[UT_PRIV_SIZE];\n };\n \n /* Test flags for each test */\n",
    "prefixes": [
        "03/12"
    ]
}