get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 831203,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/831203/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/1509101470-7881-5-git-send-email-Dave.Martin@arm.com/",
    "project": {
        "id": 41,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/41/?format=api",
        "name": "GNU C Library",
        "link_name": "glibc",
        "list_id": "libc-alpha.sourceware.org",
        "list_email": "libc-alpha@sourceware.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1509101470-7881-5-git-send-email-Dave.Martin@arm.com>",
    "list_archive_url": null,
    "date": "2017-10-27T10:50:46",
    "name": "[v4,04/28] arm64: Port deprecated instruction emulation to new sysctl interface",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "bc94bcc9e69e94feb50ff2f1b8088e44b2f9d13c",
    "submitter": {
        "id": 26612,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/26612/?format=api",
        "name": "Dave Martin",
        "email": "Dave.Martin@arm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/1509101470-7881-5-git-send-email-Dave.Martin@arm.com/mbox/",
    "series": [
        {
            "id": 10555,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/10555/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=10555",
            "date": "2017-10-27T10:50:42",
            "name": "ARM Scalable Vector Extension (SVE)",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/10555/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/831203/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/831203/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-return-86446-incoming=patchwork.ozlabs.org@sourceware.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list libc-alpha@sourceware.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-86446-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"veJn1OFP\"; dkim-atps=neutral",
            "sourceware.org; auth=none"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yNggN3bdLz9t41\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 27 Oct 2017 21:52:16 +1100 (AEDT)",
            "(qmail 116023 invoked by alias); 27 Oct 2017 10:51:30 -0000",
            "(qmail 115973 invoked by uid 89); 27 Oct 2017 10:51:30 -0000"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-type:content-transfer-encoding;\n\tq=dns; s=default; b=d4gAR1R80P/ZI6R6vnb+owGI5KDxNg8Jkoov8d3aLAK\n\t3eEmG0PwtHbrPdyMKdL92GCAmKFhI2Qxy8W6VXGhT7LdoTKLlS/1At8zY3cLY7xc\n\tDfBtBcH+8C0YgV3SDSmYZRu9cGcdgjl6nR2BraSj9Mr5Z/XsBhIXc/rs/O3E7/TU\n\t=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-type:content-transfer-encoding;\n\ts=default; bh=XFRzBaliNttmMJAE+UFSoYYuq/U=; b=veJn1OFP4nqszzKdR\n\ttKQRMCs8xSQ6NXm85+/v3Is6yL1EF7zLJEG4Mjs45GKsn74ET9lV1ByKwnrTZrsh\n\trU6OmYCr/+GS8yIB6zBb/6NkNCL0GDbAo+dxkxgmyapyv4XcoCxTK6JIi8av2mbb\n\t88Lc9i1Uyciy/wRtpyzsrSr/og=",
        "Mailing-List": "contact libc-alpha-help@sourceware.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<libc-alpha.sourceware.org>",
        "List-Unsubscribe": "<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>",
        "List-Subscribe": "<mailto:libc-alpha-subscribe@sourceware.org>",
        "List-Archive": "<http://sourceware.org/ml/libc-alpha/>",
        "List-Post": "<mailto:libc-alpha@sourceware.org>",
        "List-Help": "<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>",
        "Sender": "libc-alpha-owner@sourceware.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:2194,\n\tlife",
        "X-HELO": "foss.arm.com",
        "From": "Dave Martin <Dave.Martin@arm.com>",
        "To": "linux-arm-kernel@lists.infradead.org",
        "Cc": "Catalin Marinas <catalin.marinas@arm.com>, Will Deacon\n\t<will.deacon@arm.com>, \tArd Biesheuvel <ard.biesheuvel@linaro.org>,\n\t=?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= <alex.bennee@linaro.org>,\n\tSzabolcs Nagy <szabolcs.nagy@arm.com>, Okamoto Takayuki\n\t<tokamoto@jp.fujitsu.com>, \tkvmarm@lists.cs.columbia.edu,\n\tlibc-alpha@sourceware.org, \tlinux-arch@vger.kernel.org",
        "Subject": "[PATCH v4 04/28] arm64: Port deprecated instruction emulation to\n\tnew sysctl interface",
        "Date": "Fri, 27 Oct 2017 11:50:46 +0100",
        "Message-Id": "<1509101470-7881-5-git-send-email-Dave.Martin@arm.com>",
        "In-Reply-To": "<1509101470-7881-1-git-send-email-Dave.Martin@arm.com>",
        "References": "<1509101470-7881-1-git-send-email-Dave.Martin@arm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Currently, armv8_deprected.c takes charge of the \"abi\" sysctl\ndirectory, which makes life difficult for other code that wants to\nregister sysctls in the same directory.\n\nThere is a \"new\" [1] sysctl registration interface that removes the\nneed to define ctl_tables for parent directories explicitly, which\nis ideal here.\n\nThis patch ports register_insn_emulation_sysctl() over to the\nregister_sysctl() interface and removes the redundant ctl_table for\n\"abi\".\n\nSigned-off-by: Dave Martin <Dave.Martin@arm.com>\nReviewed-by: Alex Bennée <alex.bennee@linaro.org>\nReviewed-by: Catalin Marinas <catalin.marinas@arm.com>\n\n[1] fea478d4101a (sysctl: Add register_sysctl for normal sysctl\nusers)\nThe commit message notes an intent to port users of the\npre-existing interfaces over to register_sysctl(), though the\nnumber of users of the new interface currently appears negligible.\n---\n arch/arm64/kernel/armv8_deprecated.c | 15 +++------------\n 1 file changed, 3 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/arch/arm64/kernel/armv8_deprecated.c b/arch/arm64/kernel/armv8_deprecated.c\nindex a4dc115..c33b5e4 100644\n--- a/arch/arm64/kernel/armv8_deprecated.c\n+++ b/arch/arm64/kernel/armv8_deprecated.c\n@@ -228,15 +228,7 @@ static int emulation_proc_handler(struct ctl_table *table, int write,\n \treturn ret;\n }\n \n-static struct ctl_table ctl_abi[] = {\n-\t{\n-\t\t.procname = \"abi\",\n-\t\t.mode = 0555,\n-\t},\n-\t{ }\n-};\n-\n-static void __init register_insn_emulation_sysctl(struct ctl_table *table)\n+static void __init register_insn_emulation_sysctl(void)\n {\n \tunsigned long flags;\n \tint i = 0;\n@@ -262,8 +254,7 @@ static void __init register_insn_emulation_sysctl(struct ctl_table *table)\n \t}\n \traw_spin_unlock_irqrestore(&insn_emulation_lock, flags);\n \n-\ttable->child = insns_sysctl;\n-\tregister_sysctl_table(table);\n+\tregister_sysctl(\"abi\", insns_sysctl);\n }\n \n /*\n@@ -644,7 +635,7 @@ static int __init armv8_deprecated_init(void)\n \tcpuhp_setup_state_nocalls(CPUHP_AP_ARM64_ISNDEP_STARTING,\n \t\t\t\t  \"arm64/isndep:starting\",\n \t\t\t\t  run_all_insn_set_hw_mode, NULL);\n-\tregister_insn_emulation_sysctl(ctl_abi);\n+\tregister_insn_emulation_sysctl();\n \n \treturn 0;\n }\n",
    "prefixes": [
        "v4",
        "04/28"
    ]
}