get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221502,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221502/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260409151926.239092-1-rbranco@suse.de/",
    "project": {
        "id": 59,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260409151926.239092-1-rbranco@suse.de>",
    "list_archive_url": null,
    "date": "2026-04-09T15:19:22",
    "name": "[v5,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": "1a75ac6d6fa4537c0b63c37dee89a3280aef9d11",
    "submitter": {
        "id": 92484,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/92484/?format=api",
        "name": "Ricardo Branco",
        "email": "rbranco@suse.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260409151926.239092-1-rbranco@suse.de/mbox/",
    "series": [
        {
            "id": 499314,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/499314/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=499314",
            "date": "2026-04-09T15:19:22",
            "name": "[v5,1/2] memfd_create: move sys_memfd_create() to lapi/memfd.h",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/499314/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221502/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221502/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=m4vJAhZF;\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=lvTm49bR;\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=m4vJAhZF;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=lvTm49bR;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)",
            "smtp-out1.suse.de;\n dkim=pass header.d=suse.de header.s=susede2_rsa header.b=m4vJAhZF;\n dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=lvTm49bR"
        ],
        "Received": [
            "from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\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 4fs3WZ3rG7z1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 01:19:38 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 75DEA3E4D44\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  9 Apr 2026 17:19:35 +0200 (CEST)",
            "from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::2])\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 1FBD83DFABE\n for <ltp@lists.linux.it>; Thu,  9 Apr 2026 17:19:31 +0200 (CEST)",
            "from smtp-out1.suse.de (smtp-out1.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:1])\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-2.smtp.seeweb.it (Postfix) with ESMTPS id B97056003A8\n for <ltp@lists.linux.it>; Thu,  9 Apr 2026 17:19:30 +0200 (CEST)",
            "from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org\n [IPv6:2a07:de40:b281:104: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-out1.suse.de (Postfix) with ESMTPS id 46D556A7C7;\n Thu,  9 Apr 2026 15:19:29 +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 2654F4A0B3;\n Thu,  9 Apr 2026 15:19:29 +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 CgmCB4HD12klMQAAD6G6ig\n (envelope-from <rbranco@suse.de>); Thu, 09 Apr 2026 15:19:29 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1775747969;\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=6KzXNWcRCKyR18ggAlQpkId1POx5jzDcEqDhf05hmfI=;\n b=m4vJAhZFqVEmP3V/8MiIM2JjLhyLxJNk+AU6PWKH1qaVP4/9mBjDQCDWouWMgKHxXJUmPz\n hkRDIuzj88823ZbCAcqwkrNU4RTyDr4WwkJrG+XVRu1Q6u0y3ZyWt0SGeO45dflbN0qEfY\n SZqlfHWw6mqdZErrInkbfyys+Lf7+mI=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1775747969;\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=6KzXNWcRCKyR18ggAlQpkId1POx5jzDcEqDhf05hmfI=;\n b=lvTm49bRFjsEcglD2VeMBA//YHuT2AEso6K0HMtk2E6okC0tlyAnbfSe88Qv1CKRMBOyQi\n H5Zs1pAGrlFYAbBA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1775747969;\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=6KzXNWcRCKyR18ggAlQpkId1POx5jzDcEqDhf05hmfI=;\n b=m4vJAhZFqVEmP3V/8MiIM2JjLhyLxJNk+AU6PWKH1qaVP4/9mBjDQCDWouWMgKHxXJUmPz\n hkRDIuzj88823ZbCAcqwkrNU4RTyDr4WwkJrG+XVRu1Q6u0y3ZyWt0SGeO45dflbN0qEfY\n SZqlfHWw6mqdZErrInkbfyys+Lf7+mI=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1775747969;\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=6KzXNWcRCKyR18ggAlQpkId1POx5jzDcEqDhf05hmfI=;\n b=lvTm49bRFjsEcglD2VeMBA//YHuT2AEso6K0HMtk2E6okC0tlyAnbfSe88Qv1CKRMBOyQi\n H5Zs1pAGrlFYAbBA=="
        ],
        "From": "Ricardo Branco <rbranco@suse.de>",
        "To": "ltp@lists.linux.it",
        "Date": "Thu,  9 Apr 2026 17:19:22 +0200",
        "Message-ID": "<20260409151926.239092-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-Spamd-Result": "default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000];\n R_MISSING_CHARSET(0.50)[];\n R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n MX_GOOD(-0.01)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n MIME_TRACE(0.00)[0:+];\n RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n TO_DN_SOME(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com];\n RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n FROM_HAS_DN(0.00)[];\n RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received];\n DNSWL_BLOCKED(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[];\n RCVD_TLS_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.de:+];\n SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid, suse.de:dkim, suse.de:email,\n imap1.dmz-prg2.suse.org:helo, imap1.dmz-prg2.suse.org:rdns]",
        "X-Rspamd-Action": "no action",
        "X-Spam-Score": "-3.01",
        "X-Spam-Level": "",
        "X-Rspamd-Server": "rspamd1.dmz-prg2.suse.org",
        "X-Rspamd-Queue-Id": "46D556A7C7",
        "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE,SPF_PASS\n shortcircuit=no autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-2.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-2.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH v5 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    | 4 +---\n 4 files changed, 9 insertions(+), 9 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..df809d6c7 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@@ -101,8 +101,6 @@ int mfd_flags_available(const char *filename, const int lineno,\n \n int get_mfd_all_available_flags(const char *filename, const int lineno);\n \n-int sys_memfd_create(const char *name, unsigned int flags);\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 int check_fallocate_fail(const char *filename, const int lineno, int fd,\n",
    "prefixes": [
        "v5",
        "1/2"
    ]
}