get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1454512,
    "url": "http://patchwork.ozlabs.org/api/patches/1454512/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-um/patch/1615965096-122733-1-git-send-email-yang.lee@linux.alibaba.com/",
    "project": {
        "id": 60,
        "url": "http://patchwork.ozlabs.org/api/projects/60/?format=api",
        "name": "User-mode Linux Development",
        "link_name": "linux-um",
        "list_id": "linux-um.lists.infradead.org",
        "list_email": "linux-um@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1615965096-122733-1-git-send-email-yang.lee@linux.alibaba.com>",
    "list_archive_url": null,
    "date": "2021-03-17T07:11:36",
    "name": "um: replace if (cond) BUG() with BUG_ON()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "99320984163f0b85c851eb0b029583443ec28e45",
    "submitter": {
        "id": 81034,
        "url": "http://patchwork.ozlabs.org/api/people/81034/?format=api",
        "name": "Yang Li",
        "email": "yang.lee@linux.alibaba.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-um/patch/1615965096-122733-1-git-send-email-yang.lee@linux.alibaba.com/mbox/",
    "series": [
        {
            "id": 234469,
            "url": "http://patchwork.ozlabs.org/api/series/234469/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-um/list/?series=234469",
            "date": "2021-03-17T07:11:36",
            "name": "um: replace if (cond) BUG() with BUG_ON()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/234469/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1454512/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1454512/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org;\n envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=desiato.20200630 header.b=adGDZlwr;\n\tdkim-atps=neutral"
        ],
        "Received": [
            "from desiato.infradead.org (desiato.infradead.org\n [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4F0hDQ5Zmgz9sVm\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 17 Mar 2021 18:12:06 +1100 (AEDT)",
            "from localhost ([::1] helo=desiato.infradead.org)\n\tby desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux))\n\tid 1lMQLR-002ei0-UB; Wed, 17 Mar 2021 07:11:54 +0000",
            "from out30-42.freemail.mail.aliyun.com ([115.124.30.42])\n by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux))\n id 1lMQLJ-002egG-OU\n for linux-um@lists.infradead.org; Wed, 17 Mar 2021 07:11:50 +0000",
            "from\n j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com\n fp:SMTPD_---0USEIX7F_1615965097) by smtp.aliyun-inc.com(127.0.0.1);\n Wed, 17 Mar 2021 15:11:37 +0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding\n\t:Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive:\n\tList-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To:From:Reply-To:\n\tContent-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:\n\tResent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner;\n\tbh=V/2TL7zZTWh2FRYay84r+Vaw7UNMXwGeYe4Xd8Nlmng=; b=adGDZlwrTI2+ARxhAzqJ2llgXX\n\tWT0BYLgj8k0/RtuPm54XNnU9yzcfBR1vFagjfYfkXKKRc1YnS3L11tCy9n1Ck5eFlSZ+a9d+6SCWe\n\tIyHtFTVCR4wVgHgiZ9CPBfKXh9FRNB7eiaiuBzFasHWm2dutA/Im7PjWybm3xcM13lVWL1HYQlzN0\n\tWCSnzbxuZcJpjXpHOmYm3N5oZUqDBTWuWhUTDJ/bMvDpeaBbbN9r+tYtNvj4kp6055RUDuLu0TiJa\n\tDySQZGhwa3+tOsLuHIhAkekerTFy98t2C3dUOHBpQnjw8f/eguYHfR4gHS8OqMYojovSTfWTWlJvv\n\tX1Ui+osA==;",
        "X-Alimail-AntiSpam": "AC=PASS; BC=-1|-1; BR=01201311R141e4; CH=green;\n DM=||false|;\n DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04426; MF=yang.lee@linux.alibaba.com;\n NM=1; PH=DS; RN=6; SR=0; TI=SMTPD_---0USEIX7F_1615965097;",
        "From": "Yang Li <yang.lee@linux.alibaba.com>",
        "To": "jdike@addtoit.com",
        "Cc": "richard@nod.at, anton.ivanov@cambridgegreys.com,\n linux-um@lists.infradead.org, linux-kernel@vger.kernel.org,\n Yang Li <yang.lee@linux.alibaba.com>",
        "Subject": "[PATCH] um: replace if (cond) BUG() with BUG_ON()",
        "Date": "Wed, 17 Mar 2021 15:11:36 +0800",
        "Message-Id": "<1615965096-122733-1-git-send-email-yang.lee@linux.alibaba.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20210317_071147_631798_DBD0781B ",
        "X-CRM114-Status": "UNSURE (   6.41  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-8.0 (--------)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"desiato.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview: Fix the following coccinelle reports:\n ./arch/um/kernel/mem.c:77:3-6:\n WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by:\n Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li\n <yang.lee@linux.alibaba.com>\n --- arch/um/kernel/mem.c | 3 +-- 1 file changed, 1 insertion(+),\n 2 deletions(-)\n Content analysis details:   (-8.0 points, 5.0 required)\n pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,\n no trust [115.124.30.42 listed in list.dnswl.org]\n 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -7.5 USER_IN_DEF_SPF_WL     From: address is in the default SPF\n white-list\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.5 ENV_AND_HDR_SPF_MATCH  Env and Hdr From used in default SPF WL\n Match\n 0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay\n lines",
        "X-BeenThere": "linux-um@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<linux-um.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-um/>",
        "List-Post": "<mailto:linux-um@lists.infradead.org>",
        "List-Help": "<mailto:linux-um-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"linux-um\" <linux-um-bounces@lists.infradead.org>",
        "Errors-To": "linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Fix the following coccinelle reports:\n./arch/um/kernel/mem.c:77:3-6: WARNING: Use BUG_ON instead of if\ncondition followed by BUG.\n\nReported-by: Abaci Robot <abaci@linux.alibaba.com>\nSigned-off-by: Yang Li <yang.lee@linux.alibaba.com>\n---\n arch/um/kernel/mem.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)",
    "diff": "diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c\nindex 9242dc9..22e28bf 100644\n--- a/arch/um/kernel/mem.c\n+++ b/arch/um/kernel/mem.c\n@@ -73,8 +73,7 @@ static void __init one_page_table_init(pmd_t *pmd)\n \n \t\tset_pmd(pmd, __pmd(_KERNPG_TABLE +\n \t\t\t\t\t   (unsigned long) __pa(pte)));\n-\t\tif (pte != pte_offset_kernel(pmd, 0))\n-\t\t\tBUG();\n+\t\tBUG_ON(pte != pte_offset_kernel(pmd, 0));\n \t}\n }\n \n",
    "prefixes": []
}