get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227806,
    "url": "http://patchwork.ozlabs.org/api/patches/2227806/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260424093919.500059-4-pvorel@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": "<20260424093919.500059-4-pvorel@suse.cz>",
    "list_archive_url": null,
    "date": "2026-04-24T09:39:18",
    "name": "[3/4] Add .checkpatch.conf for checkpatch.pl",
    "commit_ref": null,
    "pull_url": null,
    "state": "needs-review-ack",
    "archived": false,
    "hash": "c3eaa449ac303f40b7188b2fe281b93e26b99a0c",
    "submitter": {
        "id": 70792,
        "url": "http://patchwork.ozlabs.org/api/people/70792/?format=api",
        "name": "Petr Vorel",
        "email": "pvorel@suse.cz"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260424093919.500059-4-pvorel@suse.cz/mbox/",
    "series": [
        {
            "id": 501330,
            "url": "http://patchwork.ozlabs.org/api/series/501330/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=501330",
            "date": "2026-04-24T09:39:16",
            "name": "checkpatch: Add .checkpatch.conf",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501330/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227806/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227806/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=f+WUaj5r;\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=6iq6v4J7;\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=MuE0enHN;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=iVCT3Q0u;\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-out2.suse.de;\n\tnone"
        ],
        "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g27HT04Lpz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 19:40:36 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id D75913E5340\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 11:40:34 +0200 (CEST)",
            "from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::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 43C053E5349\n for <ltp@lists.linux.it>; Fri, 24 Apr 2026 11:39:43 +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 8D02E1000A5D\n for <ltp@lists.linux.it>; Fri, 24 Apr 2026 11:39:42 +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 4A7A75BD87;\n Fri, 24 Apr 2026 09:39:31 +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 1BD95593A6;\n Fri, 24 Apr 2026 09:39:31 +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 4KbIBVM662l0TQAAD6G6ig\n (envelope-from <pvorel@suse.cz>); Fri, 24 Apr 2026 09:39:31 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1777023572;\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=qeH+FCyuxVut5/aOENtNyXp/PRG/dUrplLEXcBFUjLE=;\n b=f+WUaj5rxjHXZcFjaM6UsTu4Q3nLkhuTQjk46pfkaidISY3d502QgUREQYj+aNswxS7mlr\n M95buiU/Q7BurogEHfyQYNO8I7Not66Qu297O1BY8C2hhWlrfufsBruMVE3XTDgfHgWTNu\n dZo/Ovm+1poGUKMG8HuoJw/OiBMegnw=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1777023572;\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=qeH+FCyuxVut5/aOENtNyXp/PRG/dUrplLEXcBFUjLE=;\n b=6iq6v4J70rd5+BLQgWYIc6DjsHJw2pm2XI9tLmuAIxLPIoREBrPy969mDXZW3EbSeyrSbT\n uTTA4QSFEzfZk2BA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1777023571;\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=qeH+FCyuxVut5/aOENtNyXp/PRG/dUrplLEXcBFUjLE=;\n b=MuE0enHNkbqe0+Wg6TjwebX5PzRhIA8awrbXmfyhSgcSV7EuO6GKW3KziM7fvz/4lagTxk\n 3nvUgVTRrPIO5Fh6le8KDEtrSK6Ih9CHGd3zHFcw9yoyvGEQ+6DW9thgJvAEPVR0V5hBup\n AHuLEsLsZtT8VIz7dNzR3vDGTRlpruk=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1777023571;\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=qeH+FCyuxVut5/aOENtNyXp/PRG/dUrplLEXcBFUjLE=;\n b=iVCT3Q0uUKGlaMAVdnmkJwbfbdgxS+GMR5mJygqqTcD31Rd9bGKbey5unRuZpIM1K7aUjx\n hgRiHMBb4kiHOGAA=="
        ],
        "From": "Petr Vorel <pvorel@suse.cz>",
        "To": "ltp@lists.linux.it",
        "Date": "Fri, 24 Apr 2026 11:39:18 +0200",
        "Message-ID": "<20260424093919.500059-4-pvorel@suse.cz>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260424093919.500059-1-pvorel@suse.cz>",
        "References": "<20260424093919.500059-1-pvorel@suse.cz>",
        "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)[-1.000];\n MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+];\n TO_DN_SOME(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[ozlabs.org:url,checkpatch.pl:url,imap1.dmz-prg2.suse.org:helo,suse.cz:mid,suse.cz:email,linux.it:email];\n RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[];\n RCVD_COUNT_TWO(0.00)[2]; FUZZY_RATELIMITED(0.00)[rspamd.com];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n RCPT_COUNT_FIVE(0.00)[5]; 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 3/4] Add .checkpatch.conf for checkpatch.pl",
        "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>",
        "Cc": "=?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= <rbm@suse.com>",
        "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": "This helps to remove duplicity because checkpatch.pl is used in 'make\ncheck' and in b4 config.\n\nb4 uses some specific flags --mailback --showfile.\n\nFor make check use $CHECKPATCH_CONFIG_DIR (new feature from previous\ncommit) to pass config file in the root directory. b4 is already run\nfrom the root directory therefore it does not need it (script uses\ndefault search path: '.:$HOME:.scripts'.\n\nFor some reason CAMELCASE check now creates a file with camel case variables:\n.checkpatch-camelcase.git.70caa71934, add it to the top level .gitignore.\n\nDocument at least some options in .checkpatch.conf.\n\nSigned-off-by: Petr Vorel <pvorel@suse.cz>\n---\nThere should not be any functional change other that camelcase file.\nCc b4 users :)\n\n .b4-config             |  5 +++--\n .checkpatch.conf       | 13 +++++++++++++\n .gitignore             |  3 +++\n include/mk/env_post.mk |  2 +-\n 4 files changed, 20 insertions(+), 3 deletions(-)\n create mode 100644 .checkpatch.conf",
    "diff": "diff --git a/.b4-config b/.b4-config\nindex da805a8a6b..ff3199624c 100644\n--- a/.b4-config\n+++ b/.b4-config\n@@ -4,6 +4,7 @@\n     send-series-to = Linux Test Project <ltp@lists.linux.it>\n     pw-url = https://patchwork.ozlabs.org/\n     pw-project = ltp\n-    prep-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --showfile --no-tree --strict --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING,FILE_PATH_CHANGES,PREFER_KERNEL_TYPES,LONG_LINE,MACRO_ARG_REUSE,SPACING,MULTIPLE_ASSIGNMENTS,UNNECESSARY_PARENTHESES,PARENTHESIS_ALIGNMENT,CONCATENATED_STRING,STRCPY,STRLCPY,STRNCPY\n-    am-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --no-tree --strict --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING,FILE_PATH_CHANGES,PREFER_KERNEL_TYPES,LONG_LINE,MACRO_ARG_REUSE,SPACING,MULTIPLE_ASSIGNMENTS,UNNECESSARY_PARENTHESES,PARENTHESIS_ALIGNMENT,CONCATENATED_STRING,STRCPY,STRLCPY,STRNCPY\n \n+    # other checkpatch.pl options from .checkpatch.conf are used\n+    prep-perpatch-check-cmd = ./scripts/checkpatch.pl -q --mailback --showfile\n+    am-perpatch-check-cmd = ./scripts/checkpatch.pl -q --mailback\ndiff --git a/.checkpatch.conf b/.checkpatch.conf\nnew file mode 100644\nindex 0000000000..20b92aaca9\n--- /dev/null\n+++ b/.checkpatch.conf\n@@ -0,0 +1,13 @@\n+# Not Linux, so don't expect a Linux tree.\n+--no-tree\n+\n+-f --terse --no-summary\n+\n+# enable more tests\n+--strict\n+\n+# kernel specific\n+--ignore PREFER_KERNEL_TYPES,STRCPY,STRLCPY,STRNCPY\n+\n+# TODO: document reason\n+--ignore CONST_STRUCT,VOLATILE,SPLIT_STRING,FILE_PATH_CHANGES,LONG_LINE,MACRO_ARG_REUSE,SPACING,MULTIPLE_ASSIGNMENTS,UNNECESSARY_PARENTHESES,PARENTHESIS_ALIGNMENT,CONCATENATED_STRING\ndiff --git a/.gitignore b/.gitignore\nindex 3fdfeaba03..f034ca1647 100644\n--- a/.gitignore\n+++ b/.gitignore\n@@ -63,3 +63,6 @@ logfile.*\n \n compile_flags.txt\n compile_commands.json\n+\n+# added by scripts/checkpatch.pl\n+.checkpatch-camelcase.*\ndiff --git a/include/mk/env_post.mk b/include/mk/env_post.mk\nindex dcb0bbc6c5..1b0d3a2a8e 100644\n--- a/include/mk/env_post.mk\n+++ b/include/mk/env_post.mk\n@@ -73,7 +73,7 @@ CHECK_TARGETS\t\t\t?= $(addprefix check-,$(notdir $(patsubst %.c,%,$(sort $(wildcar\n CHECK_TARGETS\t\t\t:= $(filter-out $(addprefix check-, $(FILTER_OUT_MAKE_TARGETS)), $(CHECK_TARGETS))\n CHECK_HEADER_TARGETS\t\t?= $(addprefix check-,$(notdir $(sort $(wildcard $(abs_srcdir)/*.h))))\n CHECK\t\t\t\t?= $(abs_top_srcdir)/tools/sparse/sparse-ltp\n-CHECK_NOFLAGS\t\t\t?= $(abs_top_srcdir)/scripts/checkpatch.pl -f --no-tree --terse --no-summary --strict --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING,FILE_PATH_CHANGES,PREFER_KERNEL_TYPES,LONG_LINE,MACRO_ARG_REUSE,SPACING,MULTIPLE_ASSIGNMENTS,UNNECESSARY_PARENTHESES,PARENTHESIS_ALIGNMENT,CONCATENATED_STRING,STRCPY,STRLCPY,STRNCPY\n+CHECK_NOFLAGS\t\t\t?= CHECKPATCH_CONFIG_DIR=\"$(abs_top_srcdir)\" $(abs_top_srcdir)/scripts/checkpatch.pl -f\n SHELL_CHECK\t\t\t?= $(abs_top_srcdir)/scripts/checkbashisms.pl --force --extra\n SHELL_CHECK_TARGETS\t\t?= $(addprefix check-,$(notdir $(sort $(wildcard $(abs_srcdir)/*.sh))))\n \n",
    "prefixes": [
        "3/4"
    ]
}