get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2228225,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228225/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260424125514.274350-1-heinrich.schuchardt@canonical.com/",
    "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": "<20260424125514.274350-1-heinrich.schuchardt@canonical.com>",
    "date": "2026-04-24T12:55:14",
    "name": "[1/1] .clang-format: add U-Boot specific for each macros",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "01111e9cc514863dc94079a7f77fbbf462179f3b",
    "submitter": {
        "id": 82181,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/82181/?format=api",
        "name": "Heinrich Schuchardt",
        "email": "heinrich.schuchardt@canonical.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260424125514.274350-1-heinrich.schuchardt@canonical.com/mbox/",
    "series": [
        {
            "id": 501464,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501464/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501464",
            "date": "2026-04-24T12:55:14",
            "name": "[1/1] .clang-format: add U-Boot specific for each macros",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501464/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228225/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228225/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 (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=c9RSuBU9;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=canonical.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.b=\"c9RSuBU9\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=canonical.com",
            "phobos.denx.de; spf=pass\n smtp.mailfrom=heinrich.schuchardt@canonical.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4g2x57384Fz1yHS\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 03:04:27 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 589FF84394;\n\tSat, 25 Apr 2026 19:04:25 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id D118C84359; Sat, 25 Apr 2026 19:04:23 +0200 (CEST)",
            "from smtp-relay-internal-1.canonical.com\n (smtp-relay-internal-1.canonical.com [185.125.188.123])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id E2ABC84309\n for <u-boot@lists.denx.de>; Sat, 25 Apr 2026 19:04:18 +0200 (CEST)",
            "from mail-wm1-f70.google.com (mail-wm1-f70.google.com\n [209.85.128.70])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id CC43E3F9CE\n for <u-boot@lists.denx.de>; Fri, 24 Apr 2026 12:55:20 +0000 (UTC)",
            "by mail-wm1-f70.google.com with SMTP id\n 5b1f17b1804b1-4837b6f6b93so85286245e9.3\n for <u-boot@lists.denx.de>; Fri, 24 Apr 2026 05:55:20 -0700 (PDT)",
            "from workstation5 (ip-176-199-115-125.um44.pools.vodafone-ip.de.\n [176.199.115.125]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48919f54572sm155274865e9.26.2026.04.24.05.55.18\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 24 Apr 2026 05:55:19 -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.1 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; d=canonical.com;\n s=20251003; t=1777035320;\n bh=OPwj785u0HBNg3C08m/UW3Vs1ssEWbUA4yf1WTwWrls=;\n h=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=c9RSuBU97RvijE2ZQWhgyLAW4VtedWRoXUfhY1GomBfGMewJwY1l9MBcTjaNX0ZMf\n M1XHX3U1kpx4CBHIG1NtpNLwwQVohpIjwsHXkY5IaKdE71LFK3x7yT27K7oZRtu26v\n k4gQSFmFKccrh31XhyoztzuwwBKFOgp7icqUT/y6Y/+xXoa5J8NXPfYmBr+HROuIIO\n Y9cGMDv95yS1E0nTM1be4VFKq8f4Kis9sApiIWte1Vy6YjPyBz2Q2rNR2eyo99RC4C\n 9tRAPId9cztV2c6syu+BcXrx3ue0Dlyb4jtN3RWV0k1gYU0wZ44mcbSYMAqBzrBRGs\n 5Rn0DA0Ft7Aa4+eZn8YnEMZizXkOYHImBSry5IqOnC4QoKvfSNzH8bbCWh4vkoZXHq\n ezQ57dO8d2m85ApNADffVUNFizPcMfQJYHg/TUMSMT98Loj3QvihvCcMmxn9+6wtVW\n 1AT4pmoRlg3MA1bj2qDQqFLogXZfoeLtChyRnrLZJhKiM8KLBaHQblZA4u0bh65n12\n idE461+CPtBvUnyx7hzYSryiz9bIOKLrcIw2M7m+kQ4zT4hsXzPcQ4+XNS7XEArjHe\n i6PYH8R1BpA/Ah5Srd+/w0EvW0D+AVsFKALDXUbiJhNLa8SKPPtBMT66Z3F6h6aIHi\n bYC01CY47deOouMfTHWobkEs=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777035320; x=1777640120;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=OPwj785u0HBNg3C08m/UW3Vs1ssEWbUA4yf1WTwWrls=;\n b=fIhqZ0q85vNWnLy4thn8HVUpzKbygZIhFQHjeuz+vGpIYdcQ4DhiMeMialm2w8DNXH\n 52HHzxEqvwKN32MuQKMB9TRqnFmkmSrSap6iVynWXxFTsaGv/W3BV0GNBw3w6vsY/QZu\n ggwUadxkcKItYGv+aryyqMJxozX0AHJBVZa0DEPZjnoPy3aploWmvB+QGnq4oRimUb6m\n BDfb82AUsWx2dR3tDpY2AreNxnxvvlPF1lLIYPYlxnSTF7rhrm971Tmw0fg014yK6Ndf\n jTrCiLKBo6ss67Z+j5+afv3RfSnh+sWn53COLoi9c6svNgmj+CSkda3X0b272ntNtDlr\n oTUQ==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ+IXd7L84ZCPj36NpsI4/NKNYETezi29OJndajqPztHe6i6w4/wBit/j9ZZL8kb+LiuzEvzeq4=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0YzfMU+KOMbPMf0MvkIX/m6rKlKRjbSzT6NYQLDbBV65l2iS1GcE\n jGXxDKm5UG9uHWoQw8YQlNf/sdOYI3dBwTRlnqO+VphWeulhW4oxrj04pM16n8o0DG/oCgntkm/\n MQ3cIter2cKSfdGgzYKe6Q5gARsZMJZRjbWkxRGiBTDJwGEf/fh6s62tF1eR8R6hz+UWp6SPQqc\n R1iwI=",
        "X-Gm-Gg": "AeBDiesVC80fqnp5nGqbMJXlhRBSD31ORdIKYoWiSBngqGEJXWobEaY+9YscnOK2/CE\n WF0jt5Hara099NicEIrbKK13dV0xeZCPMaFy88ikQd3Y+YnoEGJKirH6P1OI/KATtePac82B7zB\n FycjFENVOnf8ckvjJ8SzVjEysD3wst1XcgsIUnY/SscYtoHhJflNwQNUQbqJivvueaijy8BGcdY\n a2LXu3lfjuTT23i/WyxC/WFiBfB5ZuQSTvzfnJeUw0Cb7dhD8cYdVxtwZQbGXHxp2cLWpUWvQQK\n cOfFBR9654mZcX+rMHWbpC5M+VY3nAnkvtuZWgXz2iVdZWUKXMJiOxwisqnyg2lT3/0LSsCE6VL\n ysvPrVY+KS3ly2lvgNeuK0QPNJykncRL8BgL9cd5Xe9pITAkdGkxKh0HcYswD4opQGfJcInapom\n bTkm/pZ5DIOUk3oV3NDtfHppDyiaqzMYs2GST++q16tl7iF2rgPzCVyL365Hhv",
        "X-Received": [
            "by 2002:a05:600c:5297:b0:485:9a50:3370 with SMTP id\n 5b1f17b1804b1-488fb74a431mr503260635e9.8.1777035320374;\n Fri, 24 Apr 2026 05:55:20 -0700 (PDT)",
            "by 2002:a05:600c:5297:b0:485:9a50:3370 with SMTP id\n 5b1f17b1804b1-488fb74a431mr503260225e9.8.1777035319875;\n Fri, 24 Apr 2026 05:55:19 -0700 (PDT)"
        ],
        "From": "Heinrich Schuchardt <heinrich.schuchardt@canonical.com>",
        "To": "Tom Rini <trini@konsulko.com>",
        "Cc": "Javier Tia <floss@jetm.me>, u-boot@lists.denx.de,\n Heinrich Schuchardt <heinrich.schuchardt@canonical.com>",
        "Subject": "[PATCH 1/1] .clang-format: add U-Boot specific for each macros",
        "Date": "Fri, 24 Apr 2026 14:55:14 +0200",
        "Message-ID": "<20260424125514.274350-1-heinrich.schuchardt@canonical.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "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": "Formatting via clang-format is controlled by .clang-format.\nFor each statements should be formatted with a brace at the line end:\n\n    for_for_each() {\n    }\n\nThis requires clang-format to know that the symbol is not a function\nbut a for each macro. We use some for each macros which don't exist in\nLinux. Add these to file .clang-format.\n\nSigned-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>\n---\n .clang-format | 13 +++++++++++++\n 1 file changed, 13 insertions(+)",
    "diff": "diff --git a/.clang-format b/.clang-format\nindex 48405c54ef2..22ca6955568 100644\n--- a/.clang-format\n+++ b/.clang-format\n@@ -748,6 +748,19 @@ ForEachMacros:\n   - 'ynl_attr_for_each_nested'\n   - 'ynl_attr_for_each_payload'\n   - 'zorro_for_each_dev'\n+  # U-Boot specific\n+  - 'alist_for_each'\n+  - 'alist_for_each_filter'\n+  - 'for_each_bl_params_node'\n+  - 'ofnode_for_each_prop'\n+  - 'ofnode_for_each_subnode'\n+  - 'ofnode_for_each_compatible_node'\n+  - 'dev_for_each_subnode'\n+  - 'dev_for_each_property'\n+  - 'fdt_for_each_node_by_compatible'\n+  - 'for_each_console_dev'\n+  - 'mtd_for_each_device'\n+  - 'for_each_tpm_device'\n \n IncludeBlocks: Preserve\n IncludeCategories:\n",
    "prefixes": [
        "1/1"
    ]
}