get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227907,
    "url": "http://patchwork.ozlabs.org/api/patches/2227907/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260424132606.61550-1-mdoucha@suse.cz/",
    "project": {
        "id": 59,
        "url": "http://patchwork.ozlabs.org/api/projects/59/?format=api",
        "name": "Linux Test Project development",
        "link_name": "ltp",
        "list_id": "ltp.lists.linux.it",
        "list_email": "ltp@lists.linux.it",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260424132606.61550-1-mdoucha@suse.cz>",
    "list_archive_url": null,
    "date": "2026-04-24T13:26:05",
    "name": "pty03: Calculate test case count from test case array length",
    "commit_ref": null,
    "pull_url": null,
    "state": "needs-review-ack",
    "archived": false,
    "hash": "caee6386b3b7c5001a0c03ded96b5f4ce0851681",
    "submitter": {
        "id": 77472,
        "url": "http://patchwork.ozlabs.org/api/people/77472/?format=api",
        "name": "Martin Doucha",
        "email": "mdoucha@suse.cz"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260424132606.61550-1-mdoucha@suse.cz/mbox/",
    "series": [
        {
            "id": 501361,
            "url": "http://patchwork.ozlabs.org/api/series/501361/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=501361",
            "date": "2026-04-24T13:26:05",
            "name": "pty03: Calculate test case count from test case array length",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501361/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227907/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227907/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ltp@lists.linux.it"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "ltp@picard.linux.it"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=zI1l+4bO;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.cz\n header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=GvesySnJ;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa\n header.b=zI1l+4bO;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=GvesySnJ;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=213.254.12.146; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)",
            "smtp-out2.suse.de;\n\tnone"
        ],
        "Received": [
            "from picard.linux.it (picard.linux.it [213.254.12.146])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g2DHr520Yz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 23:26:16 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 912303E5354\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 15:26:14 +0200 (CEST)",
            "from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 55CE63E257E\n for <ltp@lists.linux.it>; Fri, 24 Apr 2026 15:26:09 +0200 (CEST)",
            "from smtp-out2.suse.de (smtp-out2.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:2])\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 in-4.smtp.seeweb.it (Postfix) with ESMTPS id ED06A1000D2F\n for <ltp@lists.linux.it>; Fri, 24 Apr 2026 15:26:08 +0200 (CEST)",
            "from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id AC7525BDAD\n for <ltp@lists.linux.it>; Fri, 24 Apr 2026 13:26:07 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A53C2593A4\n for <ltp@lists.linux.it>; Fri, 24 Apr 2026 13:26:07 +0000 (UTC)",
            "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id 5nogKG9v62lZMwAAD6G6ig\n (envelope-from <mdoucha@suse.cz>)\n for <ltp@lists.linux.it>; Fri, 24 Apr 2026 13:26:07 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1777037167; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=tFncOvqwtYGM7/VYDkAbsqrox4jd3donDflrr8YZUvQ=;\n b=zI1l+4bOZHUYwK9DpTyyZfRvUn/b+2lokkkroRfSsfMQKgDwm/qj32TsogLwAw6ufsL7h/\n YR8Ynlytxux2TcVuVY14XfQ4gH0Rdx36DsCvke2xsDkuWhk0UOoINrXdN6+Giy9JPWEEr4\n g1E2qLPb1G5tCbCLw31jJ6K9ECU1NQI=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1777037167;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=tFncOvqwtYGM7/VYDkAbsqrox4jd3donDflrr8YZUvQ=;\n b=GvesySnJuVJPMw0A2HPcw099uUY1uFg1k4cgcS/8FR6DjXLsbW+ycsu+QbJcb7Ch459Q4m\n JQIFQ+PGy+eatMAg==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1777037167; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=tFncOvqwtYGM7/VYDkAbsqrox4jd3donDflrr8YZUvQ=;\n b=zI1l+4bOZHUYwK9DpTyyZfRvUn/b+2lokkkroRfSsfMQKgDwm/qj32TsogLwAw6ufsL7h/\n YR8Ynlytxux2TcVuVY14XfQ4gH0Rdx36DsCvke2xsDkuWhk0UOoINrXdN6+Giy9JPWEEr4\n g1E2qLPb1G5tCbCLw31jJ6K9ECU1NQI=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1777037167;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=tFncOvqwtYGM7/VYDkAbsqrox4jd3donDflrr8YZUvQ=;\n b=GvesySnJuVJPMw0A2HPcw099uUY1uFg1k4cgcS/8FR6DjXLsbW+ycsu+QbJcb7Ch459Q4m\n JQIFQ+PGy+eatMAg=="
        ],
        "From": "Martin Doucha <mdoucha@suse.cz>",
        "To": "ltp@lists.linux.it",
        "Date": "Fri, 24 Apr 2026 15:26:05 +0200",
        "Message-ID": "<20260424132606.61550-1-mdoucha@suse.cz>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "X-Spamd-Result": "default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[];\n R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.999];\n MIME_GOOD(-0.10)[text/plain];\n FUZZY_RATELIMITED(0.00)[rspamd.com];\n RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1];\n ARC_NA(0.00)[];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:mid,suse.cz:email];\n FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[];\n MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2];\n TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[];\n PREVIOUSLY_DELIVERED(0.00)[ltp@lists.linux.it];\n RCVD_TLS_ALL(0.00)[]",
        "X-Spam-Score": "-2.80",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-4.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-4.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH] pty03: Calculate test case count from test case array\n length",
        "X-BeenThere": "ltp@lists.linux.it",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Linux Test Project <ltp.lists.linux.it>",
        "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>",
        "List-Archive": "<http://lists.linux.it/pipermail/ltp/>",
        "List-Post": "<mailto:ltp@lists.linux.it>",
        "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>",
        "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it",
        "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"
    },
    "content": "Use ARRAY_SIZE() to calculate test case count so that the number\ndoes not need to be adjusted manually if anyone adds or removes\nanother line discipline to the list.\n\nSigned-off-by: Martin Doucha <mdoucha@suse.cz>\n---\n\nThe actual test cases start at ldiscs[1]. ldiscs[0] is a special value\nfor initializing the file descriptor before setting the real line\ndiscipline.\n\n testcases/kernel/pty/pty03.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/testcases/kernel/pty/pty03.c b/testcases/kernel/pty/pty03.c\nindex 99c659264..d4da24265 100644\n--- a/testcases/kernel/pty/pty03.c\n+++ b/testcases/kernel/pty/pty03.c\n@@ -146,7 +146,7 @@ static void cleanup(void)\n \n static struct tst_test test = {\n \t.test = do_test,\n-\t.tcnt = 9,\n+\t.tcnt = ARRAY_SIZE(ldiscs) - 1,\n \t.setup = setup,\n \t.cleanup = cleanup,\n \t.needs_root = 1,\n",
    "prefixes": []
}