Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/84007/?format=api
http://patches.dpdk.org/api/patches/84007/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201111130542.1949894-1-conor.walsh@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20201111130542.1949894-1-conor.walsh@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201111130542.1949894-1-conor.walsh@intel.com", "date": "2020-11-11T13:05:42", "name": "[v1] net/txgbe: offset needs to be initialised to fix gcc compile error", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "67e2cc9044392108ecadae80142936649a1304ab", "submitter": { "id": 1935, "url": "http://patches.dpdk.org/api/people/1935/?format=api", "name": "Conor Walsh", "email": "conor.walsh@intel.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201111130542.1949894-1-conor.walsh@intel.com/mbox/", "series": [ { "id": 13811, "url": "http://patches.dpdk.org/api/series/13811/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13811", "date": "2020-11-11T13:05:42", "name": "[v1] net/txgbe: offset needs to be initialised to fix gcc compile error", "version": 1, "mbox": "http://patches.dpdk.org/series/13811/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/84007/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/84007/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 341C7A09D9;\n\tWed, 11 Nov 2020 14:05:53 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 755D9137D;\n\tWed, 11 Nov 2020 14:05:51 +0100 (CET)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by dpdk.org (Postfix) with ESMTP id A2F89F90\n for <dev@dpdk.org>; Wed, 11 Nov 2020 14:05:49 +0100 (CET)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Nov 2020 05:05:46 -0800", "from silpixa00400466.ir.intel.com ([10.237.213.98])\n by orsmga008.jf.intel.com with ESMTP; 11 Nov 2020 05:05:44 -0800" ], "IronPort-SDR": [ "\n BDecGT1nwQYa6AjAysvWjHy4rLXD5jS0qHgwZkh57GJP3bGbSzNEaEuXktgel7xNA+kSjHwvAY\n 3/OlPd7rOLAg==", "\n ywB5WXmUvlfSGHjS4bpzG2f9ZjIlNPamd0oNAHOxVBSy5shEpR6SYyOjbmhx9Bb5bjLofbx6Ut\n OHsXo4p+DduA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9801\"; a=\"254850456\"", "E=Sophos;i=\"5.77,469,1596524400\"; d=\"scan'208\";a=\"254850456\"", "E=Sophos;i=\"5.77,469,1596524400\"; d=\"scan'208\";a=\"354839365\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Conor Walsh <conor.walsh@intel.com>", "To": "jiawenwu@trustnetic.com,\n\tjianwang@trustnetic.com", "Cc": "dev@dpdk.org, linglix.chen@intel.com, Conor Walsh <conor.walsh@intel.com>", "Date": "Wed, 11 Nov 2020 13:05:42 +0000", "Message-Id": "<20201111130542.1949894-1-conor.walsh@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v1] net/txgbe: offset needs to be initialised to\n\tfix gcc compile error", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "When DPDK is compiled with gcc 7.5 with the optimization level set to 1\ngcc sees the offset variable in txgbe_ethdev.c as possibly being\nuninitialised. To correct this error offset has been initialised to 0 in\ntxgbe_ethdev.c\n\nSigned-off-by: Conor Walsh <conor.walsh@intel.com>\n---\n drivers/net/txgbe/txgbe_ethdev.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/txgbe/txgbe_ethdev.c b/drivers/net/txgbe/txgbe_ethdev.c\nindex 9f533603a1..7fd56c2698 100644\n--- a/drivers/net/txgbe/txgbe_ethdev.c\n+++ b/drivers/net/txgbe/txgbe_ethdev.c\n@@ -2247,7 +2247,7 @@ txgbe_dev_xstats_get_(struct rte_eth_dev *dev, uint64_t *values,\n \n \t/* Extended stats from txgbe_hw_stats */\n \tfor (i = 0; i < limit; i++) {\n-\t\tuint32_t offset;\n+\t\tuint32_t offset = 0;\n \n \t\tif (txgbe_get_offset_by_id(i, &offset)) {\n \t\t\tPMD_INIT_LOG(WARNING, \"id value %d isn't valid\", i);\n@@ -2270,7 +2270,7 @@ txgbe_dev_xstats_get_by_id(struct rte_eth_dev *dev, const uint64_t *ids,\n \t\treturn txgbe_dev_xstats_get_(dev, values, limit);\n \n \tfor (i = 0; i < limit; i++) {\n-\t\tuint32_t offset;\n+\t\tuint32_t offset = 0;\n \n \t\tif (txgbe_get_offset_by_id(ids[i], &offset)) {\n \t\t\tPMD_INIT_LOG(WARNING, \"id value %d isn't valid\", i);\n", "prefixes": [ "v1" ] }{ "id": 84007, "url": "