get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 816367,
    "url": "http://patchwork.ozlabs.org/api/patches/816367/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170920162910.32053-9-sergey.senozhatsky@gmail.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20170920162910.32053-9-sergey.senozhatsky@gmail.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170920162910.32053-9-sergey.senozhatsky@gmail.com/",
    "date": "2017-09-20T16:29:10",
    "name": "[RFC,v2,7/7] checkpatch: add pF/pf deprecation warning",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "c1115e7643a324540ae0b05ac7583b4e7c74768d",
    "submitter": {
        "id": 3905,
        "url": "http://patchwork.ozlabs.org/api/people/3905/?format=api",
        "name": "Sergey Senozhatsky",
        "email": "sergey.senozhatsky@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170920162910.32053-9-sergey.senozhatsky@gmail.com/mbox/",
    "series": [
        {
            "id": 4177,
            "url": "http://patchwork.ozlabs.org/api/series/4177/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=4177",
            "date": "2017-09-20T16:29:10",
            "name": null,
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/4177/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/816367/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/816367/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xy5JB5fWJz9sP1\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 02:47:22 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xy5JB3lzbzDqYG\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 02:47:22 +1000 (AEST)",
            "from mail-pg0-x241.google.com (mail-pg0-x241.google.com\n\t[IPv6:2607:f8b0:400e:c05::241])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xy4wN6pn3zDqXw\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 21 Sep 2017 02:30:12 +1000 (AEST)",
            "by mail-pg0-x241.google.com with SMTP id d8so1912528pgt.3\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 20 Sep 2017 09:30:12 -0700 (PDT)",
            "from localhost.localdomain ([121.137.63.184])\n\tby smtp.gmail.com with ESMTPSA id\n\tc185sm8890567pfb.57.2017.09.20.09.30.06\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 20 Sep 2017 09:30:10 -0700 (PDT)"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"hxNwoxqH\"; dkim-atps=neutral",
            "lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"hxNwoxqH\"; dkim-atps=neutral",
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c05::241; helo=mail-pg0-x241.google.com;\n\tenvelope-from=sergey.senozhatsky@gmail.com; receiver=<UNKNOWN>)",
            "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"hxNwoxqH\"; dkim-atps=neutral"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=HJqhUlNnWHdffPLzDjDRPKA3+7BArB5/r6DxGIZj5oI=;\n\tb=hxNwoxqHd94Q+u14TV5UUR+RmHch00h2JSaAkpgm66G65YJEruTIMFiK5w6S3E2PA8\n\t7oB9cO2ZoL79FJCJaKYy09sjeoZWre0L/OAu+7vmuNE83nOZWHjHzpwkDmPep1Gho6b4\n\tDwk8xI5qJusBR/hkdeNkk+SbylNQCNNOvz+wHPtBbOM/iwvYIBOF4VeuA3qMHrlGOcaT\n\tWkehdOpQ1s4CfP6sflofut4TGQBJQb2UvdNj2Rmsi57roFaGw+sQrMkOuxJMQSRhaCz6\n\tZ7Ul6YqYpvQNFJSIxL2VRNJrNGsRtwNDdrQvW6v/+ae7HZ01blmmMPq/bXBqBUwpNzuJ\n\t/Q5A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=HJqhUlNnWHdffPLzDjDRPKA3+7BArB5/r6DxGIZj5oI=;\n\tb=ZswtKxLwDrWIY7nSvtKv33SUpY46VzBRbMdexNj7gWC1yHIM48sDGMWZ//9bDGN6Ov\n\tG6Z2k7wx2EQjQaL4NtuXEn7lAARRokfkV8S6YimTL5YnijE7pb5HiK8L6wAjH+Gy2OQn\n\tk6KUc+Cu8sirCTVLMPw+1/lCR9//16Nq0fEbM8EVI9zOr1TT4cQFJ2nobbjqbinc+wev\n\tcmOG+e2C4EemNSYTazHnRGgiIgcG+h2/YzNZBgVVHJ9AqSSjWEDccye/Gity2IDFq0W1\n\tYJhZR/Gja7uYYCOZfll1/tqMeQqacSvKJGO7Ct8m0lpUfoYkURuetre4KzOnjSloRtvc\n\t+UFQ==",
        "X-Gm-Message-State": "AHPjjUiM9jMTc+GO83r7OlEC8EPKujJIXScLg/Fh7cgDqtpRVj6jjZ6S\n\txQCnaQnrsQQgtEufU0gNhsc=",
        "X-Google-Smtp-Source": "AOwi7QB077k7h1XinITHEQBMPFXV0fjIoXj/WP5nTMMWAYi+sSUfK8dLxACYu/SLhZ4H/OZm0grAdA==",
        "X-Received": "by 10.98.60.14 with SMTP id j14mr2687273pfa.51.1505925011214;\n\tWed, 20 Sep 2017 09:30:11 -0700 (PDT)",
        "From": "Sergey Senozhatsky <sergey.senozhatsky@gmail.com>",
        "To": "Tony Luck <tony.luck@intel.com>, Fenghua Yu <fenghua.yu@intel.com>,\n\tBenjamin Herrenschmidt <benh@kernel.crashing.org>,\n\tPaul Mackerras <paulus@samba.org>,\n\tMichael Ellerman <mpe@ellerman.id.au>, \n\tJames Bottomley <jejb@parisc-linux.org>, Helge Deller <deller@gmx.de>",
        "Subject": "[RFC][PATCH v2 7/7] checkpatch: add pF/pf deprecation warning",
        "Date": "Thu, 21 Sep 2017 01:29:10 +0900",
        "Message-Id": "<20170920162910.32053-9-sergey.senozhatsky@gmail.com>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170920162910.32053-1-sergey.senozhatsky@gmail.com>",
        "References": "<20170920162910.32053-1-sergey.senozhatsky@gmail.com>",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.24",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "Petr Mladek <pmladek@suse.com>, linux-ia64@vger.kernel.org,\n\tlinux-parisc@vger.kernel.org, Alexei Starovoitov <ast@kernel.org>,\n\tSteven Rostedt <rostedt@goodmis.org>, linux-kernel@vger.kernel.org,\n\tSergey Senozhatsky <sergey.senozhatsky@gmail.com>,\n\tJessica Yu <jeyu@kernel.org>, Andy Whitcroft <apw@canonical.com>,\n\tJoe Perches <joe@perches.com>,\n\tAndrew Morton <akpm@linux-foundation.org>, linuxppc-dev@lists.ozlabs.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "We deprecated '%pF/%pf' printk specifiers, since '%pS/%ps' is now smart\nenough to handle function pointer dereference on platforms where such\ndereference is required.\n\ncheckpatch warning example:\n\nWARNING: Use '%pS/%ps' instead. This pointer extension was deprecated: '%pF'\n\nSigned-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>\nCc: Andy Whitcroft <apw@canonical.com>\nCc: Joe Perches <joe@perches.com>\n---\n scripts/checkpatch.pl | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl\nindex dd2c262aebbf..5945e4843466 100755\n--- a/scripts/checkpatch.pl\n+++ b/scripts/checkpatch.pl\n@@ -5762,18 +5762,20 @@ sub process {\n \t\t        for (my $count = $linenr; $count <= $lc; $count++) {\n \t\t\t\tmy $fmt = get_quoted_string($lines[$count - 1], raw_line($count, 0));\n \t\t\t\t$fmt =~ s/%%//g;\n-\t\t\t\tif ($fmt =~ /(\\%[\\*\\d\\.]*p(?![\\WFfSsBKRraEhMmIiUDdgVCbGNO]).)/) {\n+\t\t\t\tif ($fmt =~ /(\\%[\\*\\d\\.]*p(?![\\WSsBKRraEhMmIiUDdgVCbGNO]).)/) {\n \t\t\t\t\t$bad_extension = $1;\n \t\t\t\t\tlast;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif ($bad_extension ne \"\") {\n \t\t\t\tmy $stat_real = raw_line($linenr, 0);\n+\t\t\t\tmy $error_msg = \"Invalid vsprintf pointer extension \";\n \t\t\t\tfor (my $count = $linenr + 1; $count <= $lc; $count++) {\n \t\t\t\t\t$stat_real = $stat_real . \"\\n\" . raw_line($count, 0);\n \t\t\t\t}\n+\t\t\t\t$error_msg = \"Use '%pS/%ps' instead. This pointer extension was deprecated:\" if ($bad_extension =~ /pF|pf/);\n \t\t\t\tWARN(\"VSPRINTF_POINTER_EXTENSION\",\n-\t\t\t\t     \"Invalid vsprintf pointer extension '$bad_extension'\\n\" . \"$here\\n$stat_real\\n\");\n+\t\t\t\t     \"$error_msg '$bad_extension'\\n\" . \"$here\\n$stat_real\\n\");\n \t\t\t}\n \t\t}\n \n",
    "prefixes": [
        "RFC",
        "v2",
        "7/7"
    ]
}