Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218761/?format=api
{ "id": 2218761, "url": "http://patchwork.ozlabs.org/api/patches/2218761/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260401210338.485029-1-rbranco@suse.de/", "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": "<20260401210338.485029-1-rbranco@suse.de>", "list_archive_url": null, "date": "2026-04-01T21:03:33", "name": "[v4,1/2] memfd_create: move sys_memfd_create() to lapi/memfd.h", "commit_ref": null, "pull_url": null, "state": "needs-review-ack", "archived": false, "hash": "a309989f8f5aa3a953b6ae9362a9c8d1b72868db", "submitter": { "id": 92484, "url": "http://patchwork.ozlabs.org/api/people/92484/?format=api", "name": "Ricardo Branco", "email": "rbranco@suse.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260401210338.485029-1-rbranco@suse.de/mbox/", "series": [ { "id": 498393, "url": "http://patchwork.ozlabs.org/api/series/498393/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=498393", "date": "2026-04-01T21:03:33", "name": "[v4,1/2] memfd_create: move sys_memfd_create() to lapi/memfd.h", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/498393/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218761/comments/", "check": "warning", "checks": "http://patchwork.ozlabs.org/api/patches/2218761/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.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=R4iokzR6;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.de\n header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=Z/2m4Erc;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa\n header.b=R4iokzR6;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=Z/2m4Erc;\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 4fmHXS14Xsz1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 08:03:49 +1100 (AEDT)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id E6AC63E2389\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 1 Apr 2026 23:03:45 +0200 (CEST)", "from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::3])\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 A007B3E1C4F\n for <ltp@lists.linux.it>; Wed, 1 Apr 2026 23:03:42 +0200 (CEST)", "from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131])\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-3.smtp.seeweb.it (Postfix) with ESMTPS id 3D3011A0111A\n for <ltp@lists.linux.it>; Wed, 1 Apr 2026 23:03:41 +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 3FCF65BCC9;\n Wed, 1 Apr 2026 21:03:41 +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 188494A0B0;\n Wed, 1 Apr 2026 21:03:41 +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 MtumAy2IzWkMDgAAD6G6ig\n (envelope-from <rbranco@suse.de>); Wed, 01 Apr 2026 21:03:41 +0000" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1775077421;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=vo791z6Y9dMtQvxpNZPaxEnoxhV2QXmf7d6WCThG7sc=;\n b=R4iokzR6eeR7B0jCjfSCOC0uWBU9PO+ZNhf1YGqjoOC0ffr4VDmg/AkRQAWIXfTTkMQVf0\n 7pFmRY4kV3aZCsAG3TExo0WBbuUWNbOzzWBQHj1CAEIlUtGyaihOEQVQ9tarT9PYLZOPl5\n 1L805OQy27K98V68ePRZZtLLiWAVqiU=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1775077421;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=vo791z6Y9dMtQvxpNZPaxEnoxhV2QXmf7d6WCThG7sc=;\n b=Z/2m4ErcPn88iCp431IAWcPWjnyF3/Qs0g/D8rzA1FJzuq9sztiXoKiRcOYJpbxDqLP6Mk\n BJWLzNCS/EhA4uDQ==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1775077421;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=vo791z6Y9dMtQvxpNZPaxEnoxhV2QXmf7d6WCThG7sc=;\n b=R4iokzR6eeR7B0jCjfSCOC0uWBU9PO+ZNhf1YGqjoOC0ffr4VDmg/AkRQAWIXfTTkMQVf0\n 7pFmRY4kV3aZCsAG3TExo0WBbuUWNbOzzWBQHj1CAEIlUtGyaihOEQVQ9tarT9PYLZOPl5\n 1L805OQy27K98V68ePRZZtLLiWAVqiU=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1775077421;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=vo791z6Y9dMtQvxpNZPaxEnoxhV2QXmf7d6WCThG7sc=;\n b=Z/2m4ErcPn88iCp431IAWcPWjnyF3/Qs0g/D8rzA1FJzuq9sztiXoKiRcOYJpbxDqLP6Mk\n BJWLzNCS/EhA4uDQ==" ], "From": "Ricardo Branco <rbranco@suse.de>", "To": "ltp@lists.linux.it", "Date": "Wed, 1 Apr 2026 23:03:33 +0200", "Message-ID": "<20260401210338.485029-1-rbranco@suse.de>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260331220354.297027-1-rbranco@suse.de>", "References": "<20260331220354.297027-1-rbranco@suse.de>", "MIME-Version": "1.0", "X-Spam-Score": "-6.80", "X-Spam-Level": "", "X-Spamd-Result": "default: False [-6.80 / 50.00]; REPLY(-4.00)[];\n BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000];\n MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[];\n NEURAL_HAM_SHORT(-0.20)[-0.993]; MIME_GOOD(-0.10)[text/plain];\n RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[];\n RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[];\n MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n FUZZY_RATELIMITED(0.00)[rspamd.com];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid,suse.de:email,imap1.dmz-prg2.suse.org:helo];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[];\n RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]", "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-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 v4 1/2] memfd_create: move sys_memfd_create() to\n lapi/memfd.h", "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": "Add the static inline wrapper to include/lapi/memfd.h and include the\nrequired headers so other tests can reuse it.\n\nAlso fix some minor issues detected by make check.\n\nSigned-off-by: Ricardo Branco <rbranco@suse.de>\n---\n include/lapi/memfd.h | 8 ++++++++\n testcases/kernel/syscalls/memfd_create/memfd_create01.c | 1 -\n .../kernel/syscalls/memfd_create/memfd_create_common.c | 5 -----\n .../kernel/syscalls/memfd_create/memfd_create_common.h | 2 +-\n 4 files changed, 9 insertions(+), 7 deletions(-)", "diff": "diff --git a/include/lapi/memfd.h b/include/lapi/memfd.h\nindex 57b6cd83d..46ccb0a3f 100644\n--- a/include/lapi/memfd.h\n+++ b/include/lapi/memfd.h\n@@ -6,6 +6,9 @@\n #ifndef LAPI_MEMFD_H__\n #define LAPI_MEMFD_H__\n \n+#include \"tst_test.h\"\n+#include \"lapi/syscalls.h\"\n+\n /* flags for memfd_create(2) (unsigned int) */\n #ifndef MFD_CLOEXEC\n # define MFD_CLOEXEC 0x0001U\n@@ -47,4 +50,9 @@\n #define MFD_HUGE_16GB (34 << 26)\n #endif\n \n+static inline int sys_memfd_create(const char *name, unsigned int flags)\n+{\n+\treturn tst_syscall(__NR_memfd_create, name, flags);\n+}\n+\n #endif /* LAPI_MEMFD_H__ */\ndiff --git a/testcases/kernel/syscalls/memfd_create/memfd_create01.c b/testcases/kernel/syscalls/memfd_create/memfd_create01.c\nindex 73f6b01e8..28ad04a86 100644\n--- a/testcases/kernel/syscalls/memfd_create/memfd_create01.c\n+++ b/testcases/kernel/syscalls/memfd_create/memfd_create01.c\n@@ -212,7 +212,6 @@ static void test_share_open(int fd)\n \tSAFE_CLOSE(fd2);\n }\n \n-\n static const struct tcase {\n \tint flags;\n \tvoid (*func)(int fd);\ndiff --git a/testcases/kernel/syscalls/memfd_create/memfd_create_common.c b/testcases/kernel/syscalls/memfd_create/memfd_create_common.c\nindex a52b02a56..63e8daac5 100644\n--- a/testcases/kernel/syscalls/memfd_create/memfd_create_common.c\n+++ b/testcases/kernel/syscalls/memfd_create/memfd_create_common.c\n@@ -24,11 +24,6 @@\n \n #include \"memfd_create_common.h\"\n \n-int sys_memfd_create(const char *name, unsigned int flags)\n-{\n-\treturn tst_syscall(__NR_memfd_create, name, flags);\n-}\n-\n int check_fallocate(const char *filename, const int lineno, int fd,\n \t\t\tint mode, off_t offset, off_t len)\n {\ndiff --git a/testcases/kernel/syscalls/memfd_create/memfd_create_common.h b/testcases/kernel/syscalls/memfd_create/memfd_create_common.h\nindex 60ad895fe..8e5a3efbd 100644\n--- a/testcases/kernel/syscalls/memfd_create/memfd_create_common.h\n+++ b/testcases/kernel/syscalls/memfd_create/memfd_create_common.h\n@@ -50,7 +50,7 @@\n \tcheck_munmap(__FILE__, __LINE__, (p), (length))\n \n #define CHECK_MFD_HAS_SEALS(fd, seals) \\\n-\tcheck_mfd_has_seals(__FILE__, __LINE__, (fd), (seals));\n+\tcheck_mfd_has_seals(__FILE__, __LINE__, (fd), (seals))\n \n #define CHECK_MFD_ADD_SEALS(fd, seals) \\\n \t({int r = SAFE_FCNTL((fd), F_ADD_SEALS, (seals)); \\\n", "prefixes": [ "v4", "1/2" ] }