get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220126,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2220126/?format=api",
    "project": {
        "id": 59,
        "url": "http://patchwork.ozlabs.org/api/1.0/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": ""
    },
    "msgid": "<20260406133134.17238-1-always.starving0@gmail.com>",
    "date": "2026-04-06T13:30:59",
    "name": "[1/2] close: remove unused headers and fix minor style issues",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6b26cd4e9599751e3f0d29756bf368ff5a8d4700",
    "submitter": {
        "id": 92589,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/92589/?format=api",
        "name": "Jinseok Kim",
        "email": "always.starving0@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260406133134.17238-1-always.starving0@gmail.com/mbox/",
    "series": [
        {
            "id": 498853,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/498853/?format=api",
            "date": "2026-04-06T13:30:59",
            "name": "[1/2] close: remove unused headers and fix minor style issues",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498853/mbox/"
        }
    ],
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220126/checks/",
    "tags": {},
    "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\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=X7cltXdZ;\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)"
        ],
        "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 4fq9Gz1f9Xz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 23:32:10 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 477CB3CAFF3\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  6 Apr 2026 15:32:06 +0200 (CEST)",
            "from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7])\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 694013C259D\n for <ltp@lists.linux.it>; Mon,  6 Apr 2026 15:32:02 +0200 (CEST)",
            "from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com\n [IPv6:2607:f8b0:4864:20::1044])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 0D4C320009C\n for <ltp@lists.linux.it>; Mon,  6 Apr 2026 15:32:02 +0200 (CEST)",
            "by mail-pj1-x1044.google.com with SMTP id\n 98e67ed59e1d1-35da1af3e10so3545369a91.3\n for <ltp@lists.linux.it>; Mon, 06 Apr 2026 06:32:01 -0700 (PDT)",
            "from localhost.localdomain ([211.196.223.197])\n by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-c76c65935cbsm12800269a12.26.2026.04.06.06.31.58\n for <ltp@lists.linux.it>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Apr 2026 06:31:59 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775482320; x=1776087120; darn=lists.linux.it;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=5HnbHOp7Q4ycRb1IouZ3RpTVBY2mVgcLqjL2zLFW07g=;\n b=X7cltXdZlBv0GbJyR1lZ6p143YWUKNhGUT/dprGLG9y8gm0xC5C7jPT+6scC8OFVcY\n BjTcOQor0JjI1SHx15/Nrd5OJc5k4bFgWT3W05XtwbrCo2XtmqWE9gxLI+glwxNDndah\n bcqrJ9WEWSU2B6b8f+y7Liu+M91hQM3q5+f3FrVMZ/tixFDovK3xwOKBQ8GoishsrulY\n GVXwwCV/2SIGL5oGA7AvqRDRYiOE/3Oj/OEtIwyNi1TDPmp4CD0KAqXxoanyTvK0hi/Z\n hyt25k6BhiN1KUNTND70cPZ0ywvJ2yESF2i+ikHzCAIhPxrnOf754Ym+D83z3sacJul9\n ju8w==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775482320; x=1776087120;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=5HnbHOp7Q4ycRb1IouZ3RpTVBY2mVgcLqjL2zLFW07g=;\n b=P6/3HSy8nTdmEfgwTC06gsvxwT2D+QUReKjCSIHNKfczI8mKxc8BAqIGGGgUgsosTL\n 4Q2gY8YgUaeXFiajcCZqBhQUbvz/f/r/Uh5gdOJda0ZjpsEaNJOYkp463DhjNhYr1ZjB\n rl4PvQfP7f+AcVSMnMIIR3QbHAZVwMmViUJZ61+1Xa71AvN3AKvR1ukN94lXt77U0z8p\n TSje0DnbWmhFihnlGZpOQeXt7f4DQNtgO9OUqT3iCmCEYph+iLc7cEwhQpb6zpa0/vyT\n 6w+5oP+PWfpUrgPkGK1/xdlP00lWyiZko+NzpWsia3cXyBuYePbycl8iKQAu2SDOR3KO\n MnrQ==",
        "X-Gm-Message-State": "AOJu0Ywg5fp8Jghpc/JBsVhNccDgYYdU3udNJhHjgnqwQZnF//QzoGGw\n NQPbYEgzWL2S0GWmG2XzeoBFPEuGapizNcA6ZW5DqH6Y2iCXFvGSqts/CJ3MvptJ3A==",
        "X-Gm-Gg": "AeBDieu6yEQUDLB1Nk1bZF/1IfAZTpfPMHupnVfAWrdxQdBEj9PiSHvMTsyLSOTtILx\n xnD6ZbqF/xnHmjsZvyuxkKDPzM3hPYb4/Bm02bJ7WqpFixcjCpa8uN7wzthJ/nXByzJM5qH8SbN\n AWbwLI9eIKZAO/ase5BbsvJxXOGC0dN9Ry+m+H/sER+vJw4GeIIJ1W72GkSm/Ql+gwVz306/sHb\n iMHR9n57X0auMqlX99SNlgHmuAXcdwmFhokolad7p0q4D71Du8Uoh9ZUHYT/mYWKiez+o47iDgK\n FdZs2LUlz6mFd7LQRU8Li9Pty3S8clC6BzG9upVL8TdjTSITD90F/zO/kYcKZK8j9KQduAu0WDc\n 4Ezukx17+4hJeAg99ilGdBYNSM/NUMn5QRNJnRw/fiEjsOOCZC1/TMLvQptxux2p8dcBK0w2pgW\n AmvnyHxmVVvEgFbw0cmtP7lHoX4jr/m3lDXWqr+S5SO2Wx",
        "X-Received": "by 2002:a05:6a20:3d26:b0:398:6b9a:6765 with SMTP id\n adf61e73a8af0-39f2f16d5f5mr12522131637.58.1775482319886;\n Mon, 06 Apr 2026 06:31:59 -0700 (PDT)",
        "From": "Jinseok Kim <always.starving0@gmail.com>",
        "To": "ltp@lists.linux.it",
        "Date": "Mon,  6 Apr 2026 22:30:59 +0900",
        "Message-ID": "<20260406133134.17238-1-always.starving0@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "MIME-Version": "1.0",
        "X-Spam-Status": "No, score=0.3 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,\n SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-7.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-7.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH 1/2] close: remove unused headers and fix minor style\n issues",
        "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": "Remove unused headers (<stdio.h>, <errno.h>, <sys/stat.h>) from close01.c\nand (<stdio.h>, <sys/stat.h>) from close02.c.\n\nAlso make struct test_case_t static and apply minor style fixes.\n\nSigned-off-by: Jinseok Kim <always.starving0@gmail.com>\n---\n testcases/kernel/syscalls/close/close01.c | 6 ++----\n testcases/kernel/syscalls/close/close02.c | 2 --\n 2 files changed, 2 insertions(+), 6 deletions(-)\n\n--\n2.43.0",
    "diff": "diff --git a/testcases/kernel/syscalls/close/close01.c b/testcases/kernel/syscalls/close/close01.c\nindex 4e4f107ef..616752595 100644\n--- a/testcases/kernel/syscalls/close/close01.c\n+++ b/testcases/kernel/syscalls/close/close01.c\n@@ -8,10 +8,7 @@\n  * Test that closing a file/pipe/socket works correctly.\n  */\n\n-#include <stdio.h>\n-#include <errno.h>\n #include <fcntl.h>\n-#include <sys/stat.h>\n #include \"tst_test.h\"\n\n #define FILENAME \"close01_testfile\"\n@@ -24,6 +21,7 @@ static int get_fd_file(void)\n static int get_fd_pipe(void)\n {\n \tint pipefildes[2];\n+\n \tSAFE_PIPE(pipefildes);\n \tSAFE_CLOSE(pipefildes[1]);\n \treturn pipefildes[0];\n@@ -34,7 +32,7 @@ static int get_fd_socket(void)\n \treturn SAFE_SOCKET(AF_INET, SOCK_STREAM, 0);\n }\n\n-struct test_case_t {\n+static struct test_case_t {\n \tint (*get_fd) ();\n \tchar *type;\n } tc[] = {\ndiff --git a/testcases/kernel/syscalls/close/close02.c b/testcases/kernel/syscalls/close/close02.c\nindex 2016453f8..617c48237 100644\n--- a/testcases/kernel/syscalls/close/close02.c\n+++ b/testcases/kernel/syscalls/close/close02.c\n@@ -8,9 +8,7 @@\n  * Call close(-1) and expects it to return EBADF.\n  */\n\n-#include <stdio.h>\n #include <errno.h>\n-#include <sys/stat.h>\n #include \"tst_test.h\"\n\n static void run(void)\n",
    "prefixes": [
        "1/2"
    ]
}