Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1466016/?format=api
{ "id": 1466016, "url": "http://patchwork.ozlabs.org/api/patches/1466016/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-um/patch/20210414064350.3923-2-rdunlap@infradead.org/", "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": "<20210414064350.3923-2-rdunlap@infradead.org>", "list_archive_url": null, "date": "2021-04-14T06:43:48", "name": "[1/3] um: pgtable.h: fix W=1 warning for empty body in 'do' statement", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "cd1c591ca0c2eb6bcf58bc25ab9f291f745abd57", "submitter": { "id": 18663, "url": "http://patchwork.ozlabs.org/api/people/18663/?format=api", "name": "Randy Dunlap", "email": "rdunlap@infradead.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-um/patch/20210414064350.3923-2-rdunlap@infradead.org/mbox/", "series": [ { "id": 239058, "url": "http://patchwork.ozlabs.org/api/series/239058/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-um/list/?series=239058", "date": "2021-04-14T06:43:47", "name": "um: headers: fix various W=1 warnings", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/239058/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1466016/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1466016/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=Wi8SMEz/;\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 4FKtHR3X3Xz9sVv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 14 Apr 2021 16:44:19 +1000 (AEST)", "from localhost ([::1] helo=desiato.infradead.org)\n\tby desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux))\n\tid 1lWZFt-00BiJE-R3; Wed, 14 Apr 2021 06:44:06 +0000", "from [2601:1c0:6280:3f0::e0e1] (helo=smtpauth.infradead.org)\n by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux))\n id 1lWZFl-00BiGB-5W; Wed, 14 Apr 2021 06:43:57 +0000" ], "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:List-Subscribe:List-Help:List-Post:List-Archive:\n\tList-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date:\n\tSubject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;\n\t bh=yociED9VOMWkvmTA+Dt6NpZ1hg+sx/wi+5S/TBkhlkQ=; b=Wi8SMEz/UKFaAH/4OJtruxrsf\n\tjeeTloXPvhv1A6wb5ytyVuah2+dnzMYlB/RkDD/++d8g4yh0gbpAy6omWVVQNb0ZP2Tt7lKJE7at8\n\tNJB5psjFBnacae2Gyc+Asq0gIahdFbtK+TbDurpAh/nBwSmqHliM4U3726rQu3iMdMeUEB+2nu/sM\n\tJQb54jxTqgeOXYhp4L250tFSqeU0UEM0uRjhqyKoZGcteCorXCbAoDjpX6HrY48jBS+vI6uJ76Zmb\n\tvUO0tnd/LiIe6rq0BJOJXNCGNJkpJ6jTAo6+JcTvHLjjtnt605f7E9GdrDK3Z12WsXEaoL7dqL8VW\n\ts934eHPpA==;", "From": "Randy Dunlap <rdunlap@infradead.org>", "To": "linux-kernel@vger.kernel.org", "Cc": "Randy Dunlap <rdunlap@infradead.org>, Jeff Dike <jdike@addtoit.com>,\n Richard Weinberger <richard@nod.at>,\n Anton Ivanov <anton.ivanov@cambridgegreys.com>,\n linux-um@lists.infradead.org", "Subject": "[PATCH 1/3] um: pgtable.h: fix W=1 warning for empty body in 'do'\n statement", "Date": "Tue, 13 Apr 2021 23:43:48 -0700", "Message-Id": "<20210414064350.3923-2-rdunlap@infradead.org>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20210414064350.3923-1-rdunlap@infradead.org>", "References": "<20210414064350.3923-1-rdunlap@infradead.org>", "MIME-Version": "1.0", "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>", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Sender": "\"linux-um\" <linux-um-bounces@lists.infradead.org>", "Errors-To": "linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "Use the common kernel style to eliminate a warning:\n\n./arch/um/include/asm/pgtable.h:305:47: warning: suggest braces around empty body in ‘do’ statement [-Wempty-body]\n #define update_mmu_cache(vma,address,ptep) do ; while (0)\n ^\nmm/filemap.c:3212:3: note: in expansion of macro ‘update_mmu_cache’\n update_mmu_cache(vma, addr, vmf->pte);\n ^~~~~~~~~~~~~~~~\n\nSigned-off-by: Randy Dunlap <rdunlap@infradead.org>\nCc: Jeff Dike <jdike@addtoit.com>\nCc: Richard Weinberger <richard@nod.at>\nCc: Anton Ivanov <anton.ivanov@cambridgegreys.com>\nCc: linux-um@lists.infradead.org\n---\n arch/um/include/asm/pgtable.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "--- linux-next-20210413.orig/arch/um/include/asm/pgtable.h\n+++ linux-next-20210413/arch/um/include/asm/pgtable.h\n@@ -302,7 +302,7 @@ static inline pte_t pte_modify(pte_t pte\n struct mm_struct;\n extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr);\n \n-#define update_mmu_cache(vma,address,ptep) do ; while (0)\n+#define update_mmu_cache(vma,address,ptep) do {} while (0)\n \n /* Encode and de-code a swap entry */\n #define __swp_type(x)\t\t\t(((x).val >> 5) & 0x1f)\n", "prefixes": [ "1/3" ] }