Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1447377/?format=api
{ "id": 1447377, "url": "http://patchwork.ozlabs.org/api/patches/1447377/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20210304144651.310037-2-alistair.francis@wdc.com/", "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": "<20210304144651.310037-2-alistair.francis@wdc.com>", "list_archive_url": null, "date": "2021-03-04T14:46:33", "name": "[PULL,v2,01/19] target/riscv: Declare csr_ops[] with a known size", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c576ca9421bcbbf44133157bde4dedefbf4b5a89", "submitter": { "id": 74007, "url": "http://patchwork.ozlabs.org/api/people/74007/?format=api", "name": "Alistair Francis", "email": "alistair.francis@wdc.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20210304144651.310037-2-alistair.francis@wdc.com/mbox/", "series": [ { "id": 232161, "url": "http://patchwork.ozlabs.org/api/series/232161/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=232161", "date": "2021-03-04T14:46:33", "name": "[PULL,v2,01/19] target/riscv: Declare csr_ops[] with a known size", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/232161/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1447377/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1447377/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 spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=permerror header.d=wdc.com header.i=@wdc.com header.a=rsa-sha1\n header.s=dkim.wdc.com header.b=B75MV53R;\n\tdkim-atps=neutral" ], "Received": [ "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4DrtzY151yz9sW8\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 5 Mar 2021 01:48:55 +1100 (AEDT)", "from localhost ([::1]:58412 helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1lHpHZ-0001Ha-No\n\tfor incoming@patchwork.ozlabs.org; Thu, 04 Mar 2021 09:48:53 -0500", "from eggs.gnu.org ([2001:470:142:3::10]:60072)\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1)\n (envelope-from <prvs=690dc056c=alistair.francis@wdc.com>)\n id 1lHpGb-0001H8-BM\n for qemu-devel@nongnu.org; Thu, 04 Mar 2021 09:47:53 -0500", "from esa2.hgst.iphmx.com ([68.232.143.124]:20078)\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1)\n (envelope-from <prvs=690dc056c=alistair.francis@wdc.com>)\n id 1lHpGZ-0007k4-Cx\n for qemu-devel@nongnu.org; Thu, 04 Mar 2021 09:47:53 -0500", "from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com)\n ([199.255.45.14])\n by ob1.hgst.iphmx.com with ESMTP; 04 Mar 2021 23:07:10 +0800", "from uls-op-cesaip01.wdc.com ([10.248.3.36])\n by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 04 Mar 2021 06:30:49 -0800", "from cnf008142.ad.shared (HELO alistair-risc6-laptop.hgst.com)\n ([10.86.48.109])\n by uls-op-cesaip01.wdc.com with ESMTP; 04 Mar 2021 06:47:48 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=simple/simple;\n d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com;\n t=1614870432; x=1646406432;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=ZDTRaHSlH9oUWKzFGvyYantQbVP3e5DHaFFuxiCV2ig=;\n b=B75MV53Ryr7OchNJXsabha9LJeH3i2456av/qZhvISmaPih82Poc5s4Y\n PnW2gTUC9BrSMFk028Ny5Sq9otkwZPZwNFR/T5TyoaVn6mz42y1xsBiUG\n 99wjMxQjK0IGRiadRrf+j27hD9OGnjRqehZyxBV002HoKMXp7s8TD7A0r\n lf87KcgTvIt6P7qqlHTkG2SZK+rilx1GIAVvpIy9qR1dTwPtTfSlnFFD+\n rFDvg+RZ5hnWJ67e8+oQWcBFAXLSxU9DBNWABoSdnCQRpna+DkXF/MDfV\n riK5EjA+Tpjf0/RbN+Wf2FOfw8Y0wpf8IwOiSStgj5dmeL2ZNKY9In9cu g==;", "IronPort-SDR": [ "\n sbCsxsH3V5eHDBMEimszhlYP1u69QnJPFVAbCLji0VNWNzzPCJJJ8crhKVVIC46uMhulZ4Qfhr\n OTAjIjOqiO45cyMstDkfS4OqVeUBSnnyk43sZj19DMXwBVoXRugW88OCj+EwyB5Ql0exhc7GoX\n NdmHLmGOVOHJ1inevjOmVVnVxhUT/+PRT5bQ89v4oCHDa4Qh6ECp3GNsjOyPrwCro7ydMeFYR4\n jgmchh9DJT5eax4WRBgRJAZiewkew7dEPQP2qSwU5Pshxgfb7Gk7qvn/Q6060NOX7cH4dTBDZr\n qa8=", "\n raFEygcAXEcvMPw8PNRkYemvO5kt2B7o6+YVORjq9mC3j2mLi+bIX5q/HI7zLTr76GnIolNc8A\n vYw1s597yaUUvO98pD/tbhNP6n5LLl4RwYIUaFIqRaAu8Yt6zJNX9HSJSPYmZgw2uO6krE4vd2\n 1jDcr0F6vMYkUCM+Lu1U4YyOnm0kL0CbQk6kkjSY2hedK0DcD9LUhPpaAxhrvDTYMiFoDYvpRU\n /+0zZmheVQE77mpkf8WEFLex0cDZoPmoRPYxbiY90fj85dS5068LO8qz14d4cdCsy9AuO/n6AS\n s2+rtABa2v5/jyT4ylilR8OC", "\n 8LZ095pFAOlndJvP65t27S2J0KdS0wru4RFFdNcARiQ20BsKSu7y8Hr9gYO1Bn+a3ZLNFpYG2T\n taQWWPsLd/Ni3/mPo5FNOaoBiTiJBQ/XV4w7PDUy4osVYJuQZ8pQq0dxVNq+ycKnYDbGQDvVN/\n fJKmCNoQu0iDtLzyMUpz72IZvC1VSHI4ftYbRQjV4yO9VkAq/dd0Qt/PaFJkmtESjjSVBxvHj7\n 8Sd678iMMmaPV3tgTYooB3eGcjC2zTMJmg1bLK70/ju2LDY/i2ay4EbSelQo/XDymee03Jk5PM\n U7I=" ], "X-IronPort-AV": "E=Sophos;i=\"5.81,222,1610380800\"; d=\"scan'208\";a=\"265660838\"", "WDCIronportException": "Internal", "From": "Alistair Francis <alistair.francis@wdc.com>", "To": "peter.maydell@linaro.org", "Subject": "[PULL v2 01/19] target/riscv: Declare csr_ops[] with a known size", "Date": "Thu, 4 Mar 2021 09:46:33 -0500", "Message-Id": "<20210304144651.310037-2-alistair.francis@wdc.com>", "X-Mailer": "git-send-email 2.30.1", "In-Reply-To": "<20210304144651.310037-1-alistair.francis@wdc.com>", "References": "<20210304144651.310037-1-alistair.francis@wdc.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=68.232.143.124;\n envelope-from=prvs=690dc056c=alistair.francis@wdc.com;\n helo=esa2.hgst.iphmx.com", "X-Spam_score_int": "-43", "X-Spam_score": "-4.4", "X-Spam_bar": "----", "X-Spam_report": "(-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no", "X-Spam_action": "no action", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.23", "Precedence": "list", "List-Id": "<qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://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 <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Cc": "alistair23@gmail.com, Bin Meng <bin.meng@windriver.com>,\n Alistair Francis <alistair.francis@wdc.com>, qemu-devel@nongnu.org,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "\"Qemu-devel\"\n <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>" }, "content": "From: Bin Meng <bin.meng@windriver.com>\n\ncsr_ops[] is currently declared with an unknown size in cpu.h.\nSince the array size is known, let's do a complete declaration.\n\nSigned-off-by: Bin Meng <bin.meng@windriver.com>\nReviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\nReviewed-by: Alistair Francis <alistair.francis@wdc.com>\nMessage-id: 1611024723-14293-1-git-send-email-bmeng.cn@gmail.com\nSigned-off-by: Alistair Francis <alistair.francis@wdc.com>\n---\n target/riscv/cpu.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h\nindex 02758ae0eb..419a21478c 100644\n--- a/target/riscv/cpu.h\n+++ b/target/riscv/cpu.h\n@@ -487,7 +487,7 @@ enum {\n };\n \n /* CSR function table */\n-extern riscv_csr_operations csr_ops[];\n+extern riscv_csr_operations csr_ops[CSR_TABLE_SIZE];\n \n void riscv_get_csr_ops(int csrno, riscv_csr_operations *ops);\n void riscv_set_csr_ops(int csrno, riscv_csr_operations *ops);\n", "prefixes": [ "PULL", "v2", "01/19" ] }