Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2194243/?format=api
{ "id": 2194243, "url": "http://patchwork.ozlabs.org/api/patches/2194243/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260207170632.2795-1-always.starving0@gmail.com/", "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": "<20260207170632.2795-1-always.starving0@gmail.com>", "list_archive_url": null, "date": "2026-02-07T17:06:29", "name": "inotify: modernize with SAFE_ wrappers and fix minor style issues", "commit_ref": null, "pull_url": null, "state": "needs-review-ack", "archived": false, "hash": "23306642278261b46d5b282f041d4ce15b517311", "submitter": { "id": 92589, "url": "http://patchwork.ozlabs.org/api/people/92589/?format=api", "name": "Jinseok Kim", "email": "always.starving0@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260207170632.2795-1-always.starving0@gmail.com/mbox/", "series": [ { "id": 491389, "url": "http://patchwork.ozlabs.org/api/series/491389/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=491389", "date": "2026-02-07T17:06:29", "name": "inotify: modernize with SAFE_ wrappers and fix minor style issues", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/491389/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2194243/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/2194243/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\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=iUCEPnLF;\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 4f7cnp2qwgz1xvD\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 08 Feb 2026 04:07:09 +1100 (AEDT)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 15E423CEBFF\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 7 Feb 2026 18:07:03 +0100 (CET)", "from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 4CA193C32DD\n for <ltp@lists.linux.it>; Sat, 7 Feb 2026 18:06:59 +0100 (CET)", "from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com\n [IPv6:2607:f8b0:4864:20::1042])\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-3.smtp.seeweb.it (Postfix) with ESMTPS id 9245A1A0065B\n for <ltp@lists.linux.it>; Sat, 7 Feb 2026 18:06:58 +0100 (CET)", "by mail-pj1-x1042.google.com with SMTP id\n 98e67ed59e1d1-352c5bd2769so1885816a91.1\n for <ltp@lists.linux.it>; Sat, 07 Feb 2026 09:06:58 -0800 (PST)", "from localhost.localdomain ([59.16.109.172])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-354b21fb723sm5497450a91.10.2026.02.07.09.06.55\n for <ltp@lists.linux.it>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 07 Feb 2026 09:06:56 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1770484017; x=1771088817; 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=VzURdAcHTCWCVIyYZWtE+33tLHabYNnSf8xY1sheooU=;\n b=iUCEPnLFu7WP7q8m4FLl5mTh41E/ZhbrSM5n57F8JZDNv1iVf7++L7cGmOlqhOsYTq\n OC2iUHIvyILSlQ8ypD4Lo35bBmWuM3cepDhkWxmsdEUswlboIcJrx6mOhk9ZVA19k+49\n 5Fywczo6X9BEBMdKe90nAJ5ZFi2uI0fsZ/QjxSyhYKjwncK5x2qYCo5ArKQlSqCAM1g2\n 7/u87FdOIrWhAZDaggi7NmTW32esAlC8APe8v2Q7uuaDxiOa8H3ow+JHG5jjevGOUHmi\n mV1SNEn5y9vRst7pMr2uk8ERGB0Gkx48sZJh/6Qms9m4dios6de4bp876Tx6v/gGILmf\n LTmg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770484017; x=1771088817;\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=VzURdAcHTCWCVIyYZWtE+33tLHabYNnSf8xY1sheooU=;\n b=RZw3hQfIrfO2mDhsG34OQQ5BRaP0V4BSEzXWUyNZpZHxFRTfx/SdLVCRxEuUCUweZ3\n CEb6W32odQ0na/GvIozzi2/+ZBCi67sOBeu568QdOSAcnb5Ak5SMn38bT3Q3KQqQyOFF\n 69PYeBTbEKfjWw1/bmtfbKfne9NS9t0x9USv4y8Ur3Y8FFehE/mO+aQ6Tt5U1NhBdD8M\n j5L109VB86F+RvewWerfGH4P2yPT87nwjDdVF2lx3TpcsDo97kT9Vj0UaaS9X/Swaj8g\n RZoeu+JOGhaflecVcwlmydbZZckyn+jyTIgMRBbj6ul4ijfSToyHHf2r0Iy7jc6UksLI\n oWYg==", "X-Gm-Message-State": "AOJu0YxPT3Px8eptAOon2rVbMOmHkfcfseSibjSgvXvPA9UgLaZDzx6u\n Dj8zAfy4StNClRPAwlyl7lNIYEi5tlhTY4p9WZUuArkwDMaLAWYX+TZe9Jy50Ma4qA==", "X-Gm-Gg": "AZuq6aKhBSuTHELcmF7Gg9Fv2AzYSXn8SejKlapzcG/VZmWwjhBrHZJe32lkmDTcuXp\n 54TR/gj8HeaH35f99uMkCiQletgZpm7YguuyR6Ec/EE18S/HvEKyi6oKr2S0UqLPpxr2oeJlqNb\n 99cdZ643yxyK/eynB5oMwxQ25M/bqavSPuV0PM5jeZ5dVAzFolOkq/dIOkpDr4CD12NUK6yhIsc\n j90kJlqedb//j5UB1QGYhqbTi71k4gVpeCdGN2DUgdb7gOtbS4URjZfuHsyAJbMUW/yVACtUhIg\n vMZF1N6iTqI0mNfb/mwsLuW+wjouzTjCxAaaJKl52z4ua01851ZsiBSzEEevsLtXLcss8xK/NnD\n +Ttlp6dnnEaNSzfVawofomWisDK6VJ8F/PFgS1TvQL3Zm9AwOVh+2/jfr7LSUCm0yx1P/A15CPx\n 7kNFtUS/HxBIuEqUfq3wh95jU0pSsVtA==", "X-Received": "by 2002:a17:90b:4b0c:b0:341:315:f4ec with SMTP id\n 98e67ed59e1d1-354b3c41415mr5774392a91.7.1770484016515;\n Sat, 07 Feb 2026 09:06:56 -0800 (PST)", "From": "Jinseok Kim <always.starving0@gmail.com>", "To": "ltp@lists.linux.it", "Date": "Sun, 8 Feb 2026 02:06:29 +0900", "Message-ID": "<20260207170632.2795-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-3.smtp.seeweb.it", "X-Virus-Scanned": "clamav-milter 1.0.9 at in-3.smtp.seeweb.it", "X-Virus-Status": "Clean", "Subject": "[LTP] [PATCH] inotify: modernize with SAFE_ wrappers and fix minor\n style 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": "These are small cleanups to align with current LTP style:\n- Use SAFE_ wrappers instead of manual calls\n- Remove trailing comma in tst_res() for cleaner logs\n\nSigned-off-by: Jinseok Kim <always.starving0@gmail.com>\n---\n testcases/kernel/syscalls/inotify/inotify02.c | 21 ++++---------------\n 1 file changed, 4 insertions(+), 17 deletions(-)\n\n--\n2.43.0", "diff": "diff --git a/testcases/kernel/syscalls/inotify/inotify02.c b/testcases/kernel/syscalls/inotify/inotify02.c\nindex 709a92830..314c1bd49 100644\n--- a/testcases/kernel/syscalls/inotify/inotify02.c\n+++ b/testcases/kernel/syscalls/inotify/inotify02.c\n@@ -64,11 +64,7 @@ void verify_inotify(void)\n \tstrcpy(event_set[test_cnt].name, \"\");\n \ttest_cnt++;\n\n-\tif ((fd = creat(FILE_NAME1, 0755)) == -1) {\n-\t\ttst_brk(TBROK | TERRNO,\n-\t\t\t\"creat(\\\"%s\\\", 755) failed\", FILE_NAME1);\n-\t}\n-\n+\tfd = SAFE_CREAT(FILE_NAME1, 0755);\n \tevent_set[test_cnt].mask = IN_CREATE;\n \tstrcpy(event_set[test_cnt].name, FILE_NAME1);\n \ttest_cnt++;\n@@ -89,11 +85,7 @@ void verify_inotify(void)\n \tstrcpy(event_set[test_cnt].name, FILE_NAME2);\n \ttest_cnt++;\n\n-\tif (getcwd(fname1, BUF_SIZE) == NULL) {\n-\t\ttst_brk(TBROK | TERRNO,\n-\t\t\t\"getcwd(%p, %d) failed\", fname1, BUF_SIZE);\n-\t}\n-\n+\tSAFE_GETCWD(fname1, BUF_SIZE);\n \tsnprintf(fname2, BUF_SIZE, \"%s.rename1\", fname1);\n \tSAFE_RENAME(fname1, fname2);\n \tevent_set[test_cnt].mask = IN_MOVE_SELF;\n@@ -120,12 +112,7 @@ void verify_inotify(void)\n \ttest_cnt++;\n\n \tint len, i = 0, test_num = 0;\n-\tif ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) == -1) {\n-\t\ttst_brk(TBROK | TERRNO,\n-\t\t\t\"read(%d, buf, %zu) failed\",\n-\t\t\tfd_notify, EVENT_BUF_LEN);\n-\n-\t}\n+\tlen = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN);\n\n \twhile (i < len) {\n \t\tstruct inotify_event *event;\n@@ -208,7 +195,7 @@ static void cleanup(void)\n {\n \tif (reap_wd && myinotify_rm_watch(fd_notify, wd) < 0) {\n \t\ttst_res(TWARN,\n-\t\t\t\"inotify_rm_watch (%d, %d) failed,\", fd_notify, wd);\n+\t\t\t\"inotify_rm_watch (%d, %d) failed\", fd_notify, wd);\n \t}\n\n \tif (fd_notify > 0)\n", "prefixes": [] }