Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/813825/?format=api
{ "id": 813825, "url": "http://patchwork.ozlabs.org/api/patches/813825/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/150539847337.21523.1659017394355445790.stgit@bahia/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<150539847337.21523.1659017394355445790.stgit@bahia>", "list_archive_url": null, "date": "2017-09-14T14:14:33", "name": "[v2,1/2] checkpatch: add hwaddr to @typeList", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "940bf69e91a04afed4c7463495aebbed1ece90ef", "submitter": { "id": 69178, "url": "http://patchwork.ozlabs.org/api/people/69178/?format=api", "name": "Greg Kurz", "email": "groug@kaod.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/150539847337.21523.1659017394355445790.stgit@bahia/mbox/", "series": [ { "id": 3102, "url": "http://patchwork.ozlabs.org/api/series/3102/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=3102", "date": "2017-09-14T14:14:21", "name": "spapr_pci: make index property mandatory", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/3102/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/813825/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/813825/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtLGs62Spz9s4s\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 00:18:13 +1000 (AEST)", "from localhost ([::1]:48064 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dsUy3-0007Dw-Qm\n\tfor incoming@patchwork.ozlabs.org; Thu, 14 Sep 2017 10:18:11 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:59555)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <groug@kaod.org>) id 1dsUuj-0004Qn-GD\n\tfor qemu-devel@nongnu.org; Thu, 14 Sep 2017 10:14:49 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <groug@kaod.org>) id 1dsUuf-0008UR-IL\n\tfor qemu-devel@nongnu.org; Thu, 14 Sep 2017 10:14:45 -0400", "from 8.mo2.mail-out.ovh.net ([188.165.52.147]:52725)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <groug@kaod.org>) id 1dsUuf-0008Th-BS\n\tfor qemu-devel@nongnu.org; Thu, 14 Sep 2017 10:14:41 -0400", "from player770.ha.ovh.net (b6.ovh.net [213.186.33.56])\n\tby mo2.mail-out.ovh.net (Postfix) with ESMTP id 45F4DAC1E1\n\tfor <qemu-devel@nongnu.org>; Thu, 14 Sep 2017 16:14:39 +0200 (CEST)", "from [192.168.0.243] (gar31-1-82-66-74-139.fbx.proxad.net\n\t[82.66.74.139]) (Authenticated sender: groug@kaod.org)\n\tby player770.ha.ovh.net (Postfix) with ESMTPA id EC4D13C00FC;\n\tThu, 14 Sep 2017 16:14:33 +0200 (CEST)" ], "From": "Greg Kurz <groug@kaod.org>", "To": "qemu-devel@nongnu.org", "Date": "Thu, 14 Sep 2017 16:14:33 +0200", "Message-ID": "<150539847337.21523.1659017394355445790.stgit@bahia>", "In-Reply-To": "<150539846159.21523.16161730500010192093.stgit@bahia>", "References": "<150539846159.21523.16161730500010192093.stgit@bahia>", "User-Agent": "StGit/0.17.1-46-g6855-dirty", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "X-Ovh-Tracer-Id": "10290443677359053301", "X-VR-SPAMSTATE": "OK", "X-VR-SPAMSCORE": "-100", "X-VR-SPAMCAUSE": "gggruggvucftvghtrhhoucdtuddrfeelledrgeeigdejiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd", "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]", "X-Received-From": "188.165.52.147", "Subject": "[Qemu-devel] [PATCH v2 1/2] checkpatch: add hwaddr to @typeList", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "<qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Cc": "Alexey Kardashevskiy <aik@ozlabs.ru>, Paolo Bonzini <pbonzini@redhat.com>,\n\tqemu-ppc@nongnu.org, Michael Roth <mdroth@linux.vnet.ibm.com>,\n\tDavid Gibson <david@gibson.dropbear.id.au>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>" }, "content": "The script doesn't know about all possible types and learn them as\nit parses the code. If it reaches a line with a type cast but the\ntype isn't known yet, it is misinterpreted as an identifier.\n\nFor example the following line:\n\n foo = (hwaddr) -1;\n\nresults in the following false-positive to be reported:\n\nERROR: spaces required around that '-' (ctx:VxV)\n\nLet's add this standard QEMU type to the list of pre-known types.\n\nSigned-off-by: Greg Kurz <groug@kaod.org>\n---\n scripts/checkpatch.pl | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl\nindex fa478074b88d..def5bc1cc0e1 100755\n--- a/scripts/checkpatch.pl\n+++ b/scripts/checkpatch.pl\n@@ -213,6 +213,7 @@ our @typeList = (\n \tqr{${Ident}_handler},\n \tqr{${Ident}_handler_fn},\n \tqr{target_(?:u)?long},\n+\tqr{hwaddr},\n );\n \n # This can be modified by sub possible. Since it can be empty, be careful\n", "prefixes": [ "v2", "1/2" ] }