Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115358/?format=api
http://patches.dpdk.org/api/patches/115358/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220823105742.2276506-1-amitprakashs@marvell.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": "<20220823105742.2276506-1-amitprakashs@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220823105742.2276506-1-amitprakashs@marvell.com", "date": "2022-08-23T10:57:40", "name": "[1/3] net/i40e: compilation fix for GCC-12", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "0bd2ecba8cbba416439c84174f2fe6b890bb130c", "submitter": { "id": 2699, "url": "http://patches.dpdk.org/api/people/2699/?format=api", "name": "Amit Prakash Shukla", "email": "amitprakashs@marvell.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220823105742.2276506-1-amitprakashs@marvell.com/mbox/", "series": [ { "id": 24393, "url": "http://patches.dpdk.org/api/series/24393/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24393", "date": "2022-08-23T10:57:40", "name": "[1/3] net/i40e: compilation fix for GCC-12", "version": 1, "mbox": "http://patches.dpdk.org/series/24393/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/115358/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/115358/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 86AADA0093;\n\tTue, 23 Aug 2022 12:57:57 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 34D21406A2;\n\tTue, 23 Aug 2022 12:57:57 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id A7839400D6;\n Tue, 23 Aug 2022 12:57:55 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 27NAIJcj025034;\n Tue, 23 Aug 2022 03:57:54 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3j4ubj8hm5-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 23 Aug 2022 03:57:54 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Tue, 23 Aug 2022 03:57:53 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Tue, 23 Aug 2022 03:57:53 -0700", "from localhost.localdomain (unknown [10.28.36.157])\n by maili.marvell.com (Postfix) with ESMTP id 1184A5B6929;\n Tue, 23 Aug 2022 03:57:50 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=iRhuMeED5SHTTcbJ27qmgUfW5j/td51VslfcG0ZS+kI=;\n b=Wo7rgh4uNsMbxjNQNuIirvAeghQcX96lb0NwQnk070ilmFll9vtFagUEES7NRAknYqoC\n T/Aeqc2zxzJwRE2bVYtNwSm8bMYWipyOhnaSlwjFo1RVpNHqRNUu5SDGzs8AlxIj/1mR\n 5LcjNqjvs8Jt4y50bkyxbqaXmb5FEoeXyVzIAgTesnUo+cxpR9nnZwr5xucyoAaHMCkW\n 9hLOZeBhI3wG8/iZo5McT7AlaGlInsLkq2mBvPwdHmkqQuPilJBZj8x6NTrMrqBebKyn\n M4tA7hL6OKjhkCUn68EOe0ixsg68vO3/fYEo3CnTGr08264jm7CCKGPKvRkSIN4njbTW tg==", "From": "Amit Prakash Shukla <amitprakashs@marvell.com>", "To": "Yuying Zhang <Yuying.Zhang@intel.com>, Beilei Xing <beilei.xing@intel.com>", "CC": "<dev@dpdk.org>, <jerinj@marvell.com>, Amit Prakash Shukla\n <amitprakashs@marvell.com>, <stable@dpdk.org>", "Subject": "[PATCH 1/3] net/i40e: compilation fix for GCC-12", "Date": "Tue, 23 Aug 2022 16:27:40 +0530", "Message-ID": "<20220823105742.2276506-1-amitprakashs@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "VFj7oaSLdTK2HgNdiJuhKim3Xd3OcOAb", "X-Proofpoint-ORIG-GUID": "VFj7oaSLdTK2HgNdiJuhKim3Xd3OcOAb", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1\n definitions=2022-08-23_04,2022-08-22_02,2022-06-22_01", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "GCC 12 raises the following warning:\n\nmeson --werror --buildtype=debugoptimized\n\t--cross-file config/x86/cross-mingw -Dexamples=helloworld build\nninja -C build\n\nIn function 'i40e_hash_get_pattern_type',\n inlined from 'i40e_hash_get_pattern_pctypes' at\n../drivers/net/i40e/i40e_hash.c:520:8,\n inlined from 'i40e_hash_parse_pattern_act' at\n../drivers/net/i40e/i40e_hash.c:1147:9,\n inlined from 'i40e_hash_parse' at\n../drivers/net/i40e/i40e_hash.c:1181:9:\n../drivers/net/i40e/i40e_hash.c:389:47:\n\terror: array subscript 53 is above array\n\tbounds of 'const uint64_t[53]'\n\t{aka 'const long long unsigned int[53]'} [-Werror=array-bounds]\n 389 | item_hdr = pattern_item_header[last_item_type];\n | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~\n../drivers/net/i40e/i40e_hash.c: In function 'i40e_hash_parse':\n../drivers/net/i40e/i40e_hash.c:182:23: note: while referencing\n'pattern_item_header'\n 182 | static const uint64_t pattern_item_header[] = {\n | ^~~~~~~~~~~~~~~~~~~\ncc1: all warnings being treated as errors\n\nFixes: ef4c16fd9148 (net/i40e: refactor RSS flow)\nCc: stable@dpdk.org\n\nSigned-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>\n---\n drivers/net/i40e/i40e_hash.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/i40e/i40e_hash.c b/drivers/net/i40e/i40e_hash.c\nindex 8962e9d97a..a1ff85fceb 100644\n--- a/drivers/net/i40e/i40e_hash.c\n+++ b/drivers/net/i40e/i40e_hash.c\n@@ -384,8 +384,10 @@ i40e_hash_get_pattern_type(const struct rte_flow_item pattern[],\n \t\t}\n \n \t\tprev_item_type = last_item_type;\n-\t\tassert(last_item_type < (enum rte_flow_item_type)\n-\t\t\t\tRTE_DIM(pattern_item_header));\n+\t\tif (last_item_type >= (enum rte_flow_item_type)\n+\t\t\t\tRTE_DIM(pattern_item_header))\n+\t\t\tgoto not_sup;\n+\n \t\titem_hdr = pattern_item_header[last_item_type];\n \t\tassert(item_hdr);\n \n", "prefixes": [ "1/3" ] }{ "id": 115358, "url": "