get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217884,
    "url": "http://patchwork.ozlabs.org/api/patches/2217884/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/flashrom/patch/20260307130731.300115-1-bhargav.rathod1905@gmail.com/",
    "project": {
        "id": 52,
        "url": "http://patchwork.ozlabs.org/api/projects/52/?format=api",
        "name": "Flashrom development",
        "link_name": "flashrom",
        "list_id": "flashrom.flashrom.org",
        "list_email": "flashrom@flashrom.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260307130731.300115-1-bhargav.rathod1905@gmail.com>",
    "list_archive_url": null,
    "date": "2026-03-07T13:06:54",
    "name": "cli_classic: initialize time_start to avoid clang warning",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b0e5eb93eb74547b8f0044216ad521fe3477d509",
    "submitter": {
        "id": 93013,
        "url": "http://patchwork.ozlabs.org/api/people/93013/?format=api",
        "name": "Bhargav Rathod",
        "email": "bhargav.rathod1905@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/flashrom/patch/20260307130731.300115-1-bhargav.rathod1905@gmail.com/mbox/",
    "series": [
        {
            "id": 498093,
            "url": "http://patchwork.ozlabs.org/api/series/498093/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/flashrom/list/?series=498093",
            "date": "2026-03-07T13:06:54",
            "name": "cli_classic: initialize time_start to avoid clang warning",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498093/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217884/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217884/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<flashrom-bounces@flashrom.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=permerror header.d=gmail.com header.i=@gmail.com header.a=rsa-sha1\n header.s=20230601 header.b=LJyCZN/+;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=flashrom.org\n (client-ip=78.46.105.101; helo=coreboot.org;\n envelope-from=flashrom-bounces@flashrom.org; receiver=patchwork.ozlabs.org)",
            "coreboot.org;\n\tauth=pass smtp.auth=mailman@coreboot.org\n smtp.mailfrom=flashrom-bounces@flashrom.org"
        ],
        "Received": [
            "from coreboot.org (mail.coreboot.org [78.46.105.101])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fl3NM2qpkz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 07:52:35 +1100 (AEDT)",
            "from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP])\n\tby coreboot.org (Postfix) with ESMTPA id E15CC503772;\n\tMon, 30 Mar 2026 20:52:29 +0000 (UTC)",
            "from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP])\n [209.85.214.174])\n\tby coreboot.org (Postfix) with ESMTP id C8266506666\n\tfor <flashrom@flashrom.org>; Sat,  7 Mar 2026 13:07:59 +0000 (UTC)",
            "from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP])\n d9443c01a7336-2ab077e3f32so45016375ad.3\n        for <flashrom@flashrom.org>; Sat, 07 Mar 2026 05:07:59 -0800 (PST)",
            "from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP])\n        by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2ae83e57cb1sm48378585ad.9.2026.03.07.05.07.56\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sat, 07 Mar 2026 05:07:57 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20230601; t=1772888878; x=1773493678;\n darn=flashrom.org;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:from:to:cc:subject:date:message-id:reply-to;\n        bh=pjl3adXHAjhZyu65bZ6IjmJ2xheogae4h2ImqLJZ/II=;\n        b=LJyCZN/+qJV30blZROJ416oMF2zjHBZaT5YGQcPD4WytJI1DmI0Utny1F16lR2HbpC\n         Pd+F1varCgpRoFh8jGkVxdEg3dTWLQIJnWQZiiEt7ZTnNPLBUqO3yLXp0E83+b+37HtA\n         jkL4nQfYuJlZVpYito9+tTeLY+4vxUZwskihaV+4vIr2Xs9h3dosvm1xIo0s+52ONlHW\n         0l1HTE/NpUyQkAET04gOlvle+mnKGRkZGtzRnChPwiZc25ICc0Pb1llTWJoWxASGz8C9\n         qSEZW8dUq/AuV56JOoJczXJpTxidIWBzzrmHJtyb6M46HYBmFj7+AxAM4sJ4cj5jUrRi\n         KlMw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1772888878; x=1773493678;\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=pjl3adXHAjhZyu65bZ6IjmJ2xheogae4h2ImqLJZ/II=;\n        b=p3Kd705e4b132A/wAUTZvQqsQBT3HMXPT5TysvhZ+IrgUx6+coDXQLC5PhXfdEfHbL\n         QWmtdz2B3DIkn9mt+Oul1K55rxaUUaCLwfh5dpQj++gW9r13CYg0nWxS/wB74gQzzz4X\n         6QVTY+eihNSOEBLy8Px0oFa2+RzAR9YJo7XDy+G3c1u0BMWfWkL7jyJw0lm82U2zs9Yj\n         V8KPB7XFIn9K3TsIftWgWGrPGqItIUIxfCSK2CZrOZCZssoN3Q7M5uZ/T/xETudDOc4E\n         krAJeetjWKS3wr2+mXr6aM6vjErBZKNYxOe7I62tOfDZBMdGRHTriMouZHT2DYhkadhu\n         FuRQ==",
        "X-Gm-Message-State": "AOJu0YwZcYGK5bvEASi0HLZCylY72Ub0HYSjHTKTdLRPTiLXpOnfA/9x\n\t7mGkbeT5j09MkqURnxQqz9yfGs/wof2Ys3DgY8ZlRvqhdqQRbTNJXSmCg4pprg==",
        "X-Gm-Gg": "ATEYQzzJzrG04wocOvhp5Bv8aLCvxrFd29k1u2bX+AG7uQ3ChEAKo8Vv2zPVxgmDH/p\n\tmBIAj+KXJaLbSrHXN0RNSvJd/leQdxbLyP90x9ztBsoHB3FUKFFepz9h0Sk6IKFTXDLwLxIJCFi\n\tB5nhtmNnMGh17YTBxWws6dAvQZNO1dLkVSxh7+8t9XeSg419w1EW4X3bOKnRPXP4XF2+fTBD88N\n\twLpDfY7YcmRqSNjLEBqPgSkWViyFcNID0B2xf8c5gQLipR4nH85t6CvmiTh52pYjAf812mGLFPe\n\tQAXYzkU+CWvKAGfF9lQWTNM1ZFFHq+pQfXXuFkW+HhgIf4wM6PJQww8kVE7KyYKklNEzOUdDBCy\n\txzCAav+52HfxziniRaPCEf8D4hOEthUxt7FadF4gAaQNWkHId1Kx3bGrxJ339ug3Yhs0xK5eRgZ\n\tKWKG6MvBkE/Mu/NbWMguibjkn82jN6vIgIVUOHAUyX9uuth0hrpw==",
        "X-Received": "by 2002:a17:903:1b0e:b0:2ae:6d9e:ed57 with SMTP id\n d9443c01a7336-2ae82457bd5mr62410065ad.21.1772888877784;\n        Sat, 07 Mar 2026 05:07:57 -0800 (PST)",
        "From": "Bhargav Rathod <bhargav.rathod1905@gmail.com>",
        "To": "flashrom@flashrom.org",
        "Date": "Sat,  7 Mar 2026 13:06:54 +0000",
        "Message-ID": "<20260307130731.300115-1-bhargav.rathod1905@gmail.com>",
        "MIME-Version": "1.0",
        "X-Spam-Level": "**",
        "X-MailFrom": "bhargav.rathod1905@gmail.com",
        "X-Mailman-Rule-Hits": "nonmember-moderation",
        "X-Mailman-Rule-Misses": "dmarc-mitigation; no-senders; approved; loop;\n banned-address; header-match-flashrom.flashrom.org-0;\n header-match-flashrom.flashrom.org-1; header-match-flashrom.flashrom.org-2;\n header-match-flashrom.flashrom.org-3; header-match-flashrom.flashrom.org-4;\n header-match-flashrom.flashrom.org-5; header-match-flashrom.flashrom.org-6;\n header-match-flashrom.flashrom.org-7; header-match-flashrom.flashrom.org-8;\n header-match-flashrom.flashrom.org-9; header-match-flashrom.flashrom.org-10;\n header-match-flashrom.flashrom.org-11; header-match-flashrom.flashrom.org-12;\n header-match-flashrom.flashrom.org-13; header-match-flashrom.flashrom.org-14;\n header-match-flashrom.flashrom.org-15; header-match-flashrom.flashrom.org-16;\n header-match-flashrom.flashrom.org-17; header-match-flashrom.flashrom.org-18;\n header-match-flashrom.flashrom.org-19; header-match-flashrom.flashrom.org-20;\n header-match-flashrom.flashrom.org-21; header-match-flashrom.flashrom.org-22;\n header-match-flashrom.flashrom.org-23; header-match-flashrom.flashrom.org-24;\n header-match-flashrom.flashrom.org-25; header-match-flashrom.flashrom.org-26;\n header-match-flashrom.flashrom.org-27; header-match-flashrom.flashrom.org-28;\n header-match-flashrom.flashrom.org-29; header-match-flashrom.flashrom.org-30;\n header-match-flashrom.flashrom.org-31; header-match-flashrom.flashrom.org-32;\n header-match-flashrom.flashrom.org-33; header-match-flashrom.flashrom.org-34;\n header-match-flashrom.flashrom.org-35; header-match-flashrom.flashrom.org-36;\n header-match-flashrom.flashrom.org-37; header-match-flashrom.flashrom.org-38;\n header-match-flashrom.flashrom.org-39; header-match-flashrom.flashrom.org-40;\n header-match-flashrom.flashrom.org-41; header-match-flashrom.flashrom.org-42;\n header-match-flashrom.flashrom.org-43; header-match-flashrom.flashrom.org-44;\n header-match-flashrom.flashrom.org-45; header-match-flashrom.flashrom.org-46;\n header-match-flashrom.flashrom.org-47; header-match-flashrom.flashrom.org-48;\n header-match-flashrom.flashrom.org-49; header-match-flashrom.flashrom.org-50;\n header-match-flashrom.flashrom.org-51; header-match-flashrom.flashrom.org-52;\n header-match-flashrom.flashrom.org-53; header-match-flashrom.flashrom.org-54;\n header-match-flashrom.flashrom.org-55; header-match-flashrom.flashrom.org-56;\n header-match-flashrom.flashrom.org-57; header-match-flashrom.flashrom.org-58;\n header-match-flashrom.flashrom.org-59; header-match-flashrom.flashrom.org-60;\n header-match-flashrom.flashrom.org-61; header-match-flashrom.flashrom.org-62;\n header-match-flashrom.flashrom.org-63; header-match-flashrom.flashrom.org-64;\n header-match-flashrom.flashrom.org-65; header-match-flashrom.flashrom.org-66;\n header-match-flashrom.flashrom.org-67; header-match-flashrom.flashrom.org-68;\n header-match-flashrom.flashrom.org-69; header-match-flashrom.flashrom.org-70;\n header-match-flashrom.flashrom.org-71; header-match-flashrom.flashrom.org-72;\n header-match-flashrom.flashrom.org-73; header-match-flashrom.flashrom.org-74;\n header-match-flashrom.flashrom.org-75; header-match-flashrom.flashrom.org-76;\n header-match-flashrom.flashrom.org-77; header-match-flashrom.flashrom.org-78;\n header-match-flashrom.flashrom.org-79; header-match-flashrom.flashrom.org-80;\n header-match-flashrom.flashrom.org-81; header-match-flashrom.flashrom.org-82;\n header-match-flashrom.flashrom.org-83; header-match-flashrom.flashrom.org-84;\n header-match-flashrom.flashrom.org-85; header-match-flashrom.flashrom.org-86;\n header-match-flashrom.flashrom.org-87; header-match-flashrom.flashrom.org-88;\n header-match-flashrom.flashrom.org-89; header-match-flashrom.flashrom.org-90;\n header-match-flashrom.flashrom.org-91; header-match-flashrom.flashrom.org-92;\n header-match-flashrom.flashrom.org-93; header-match-flashrom.flashrom.org-94;\n header-match-flashrom.flashrom.org-95; emergency; member-moderation",
        "Message-ID-Hash": "52QIIJBBX3VSFMJDUABB4MCTRYUI36QL",
        "X-Message-ID-Hash": "52QIIJBBX3VSFMJDUABB4MCTRYUI36QL",
        "X-Mailman-Approved-At": "Mon, 30 Mar 2026 20:52:14 +0000",
        "CC": "Bhargav Rathod <bhargav.rathod1905@gmail.com>",
        "X-Mailman-Version": "3.3.11b1",
        "Precedence": "list",
        "Subject": "[flashrom] [PATCH] cli_classic: initialize time_start to avoid clang\n warning",
        "List-Id": "flashrom discussion and development mailing list\n <flashrom.flashrom.org>",
        "Archived-At": "\n <https://mail.coreboot.org/archives/list/flashrom@flashrom.org/message/52QIIJBBX3VSFMJDUABB4MCTRYUI36QL/>",
        "List-Archive": "<https://mail.coreboot.org/archives/list/flashrom@flashrom.org/>",
        "List-Help": "<mailto:flashrom-request@flashrom.org?subject=help>",
        "List-Owner": "<mailto:flashrom-owner@flashrom.org>",
        "List-Post": "<mailto:flashrom@flashrom.org>",
        "List-Subscribe": "<mailto:flashrom-join@flashrom.org>",
        "List-Unsubscribe": "<mailto:flashrom-leave@flashrom.org>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "X-Spamd-Bar": "/"
    },
    "content": "Recent clang versions enable -Wsometimes-uninitialized under -Wall.\nSince flashrom builds with -Werror, this causes the build to fail.\n\nInitialize time_start to avoid potential use before assignment.\n\nChange-Id: Id695ab35dab9e9ead0c8b04c0e579422f6e10244\nSigned-off-by: Bhargav Rathod <bhargav.rathod1905@gmail.com>\n---\n cli_classic.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/cli_classic.c b/cli_classic.c\nindex 29f21cca..06cc4e18 100644\n--- a/cli_classic.c\n+++ b/cli_classic.c\n@@ -1055,7 +1055,7 @@ int main(int argc, char *argv[])\n \tint ret = 0;\n \tint all_matched_count = 0;\n \tconst char **all_matched_names = NULL;\n-\ttime_t time_start, time_end;\n+\ttime_t time_start = 0, time_end = 0;\n \n \tstruct flashctx *context = NULL; /* holds the active detected chip and other info */\n \tret = flashrom_create_context(&context);\n",
    "prefixes": []
}