Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/62675/?format=api
http://patches.dpdk.org/api/patches/62675/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191107150318.3677-8-aostruszka@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": "<20191107150318.3677-8-aostruszka@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20191107150318.3677-8-aostruszka@marvell.com", "date": "2019-11-07T15:03:13", "name": "[v7,07/12] app/test: clean LTO build warnings (maybe-uninitialized)", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "033ab620ed180c1595fc51a6c87350ef3b5eece1", "submitter": { "id": 1429, "url": "http://patches.dpdk.org/api/people/1429/?format=api", "name": "Andrzej Ostruszka [C]", "email": "aostruszka@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/20191107150318.3677-8-aostruszka@marvell.com/mbox/", "series": [ { "id": 7333, "url": "http://patches.dpdk.org/api/series/7333/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7333", "date": "2019-11-07T15:03:06", "name": "Add an option to use LTO for DPDK build", "version": 7, "mbox": "http://patches.dpdk.org/series/7333/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/62675/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/62675/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 4BD9EA034E;\n\tThu, 7 Nov 2019 16:05:34 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5E00F1BFB6;\n\tThu, 7 Nov 2019 16:04:02 +0100 (CET)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id E54E61BFB3\n for <dev@dpdk.org>; Thu, 7 Nov 2019 16:03:59 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n xA7EttXJ028512; Thu, 7 Nov 2019 07:03:39 -0800", "from sc-exch03.marvell.com ([199.233.58.183])\n by mx0b-0016f401.pphosted.com with ESMTP id 2w4fq6sbwy-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 07 Nov 2019 07:03:39 -0800", "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 7 Nov\n 2019 07:03:38 -0800", "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n Transport; Thu, 7 Nov 2019 07:03:37 -0800", "from amok.marvell.com (unknown [10.95.130.48])\n by maili.marvell.com (Postfix) with ESMTP id 9289D3F703F;\n Thu, 7 Nov 2019 07:03:35 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type : content-transfer-encoding; s=pfpt0818;\n bh=+keO6+G2eKOic0AOcp56HbUUyBi1xb7utLeSJN+jgcQ=;\n b=uhxov8c0+/oj0GYX1ovHXccP5EHk7a1HNlBbha2jTa26+g3NfUdi3td1zVJEgMxbMntE\n rCfFgdD5pCv5hxSA4LsJGWBJJS70gcsftALuzhcm8OtpIlkkKo8GoGVeLLxrqq0/xOqv\n yHx36jGRjDr3wZSNCfuUpDbtrbPQna0W/VZ15ad33+88Y8ji6jx8zd+JD8ndrr0JVqgU\n mrOS0R7PMIGNpptIHK3YJj57qeoBDNwR1B206smD+x8zvicmGmVo9XwYuDhW9YtMjB0z\n Bv8F3NnIlum1N228dxvWOsaeVrY7crkSGKMiYjqtIBIJvwZg6p00O66xIsikvtRIN9Kt vw==", "From": "Andrzej Ostruszka <aostruszka@marvell.com>", "To": "<dev@dpdk.org>, Yipeng Wang <yipeng1.wang@intel.com>, Sameh Gobriel\n <sameh.gobriel@intel.com>, Bruce Richardson <bruce.richardson@intel.com>,\n Chas Williams <chas3@att.com>, Anatoly Burakov <anatoly.burakov@intel.com>", "CC": "<mattias.ronnblom@ericsson.com>, <stephen@networkplumber.org>", "Date": "Thu, 7 Nov 2019 16:03:13 +0100", "Message-ID": "<20191107150318.3677-8-aostruszka@marvell.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20191107150318.3677-1-aostruszka@marvell.com>", "References": "<20191029141212.4907-1-aostruszka@marvell.com>\n <20191107150318.3677-1-aostruszka@marvell.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"UTF-8\"", "Content-Transfer-Encoding": "8bit", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.95,18.0.572\n definitions=2019-11-07_05:2019-11-07,2019-11-07 signatures=0", "Subject": "[dpdk-dev] [PATCH v7 07/12] app/test: clean LTO build warnings\n\t(maybe-uninitialized)", "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": "During LTO build compiler reports some 'false positive' warnings about\nvariables being possibly used uninitialized. This patch silences these\nwarnings.\n\nExemplary compiler warning to suppress (with LTO enabled):\nerror: ‘stats.greatest_free_size’ may be used uninitialized in this\nfunction [-Werror=maybe-uninitialized]\n return len - overhead;\n\nSigned-off-by: Andrzej Ostruszka <aostruszka@marvell.com>\n---\n app/test/test_hash_readwrite.c | 2 +-\n app/test/test_link_bonding_mode4.c | 8 +++++++-\n app/test/test_memzone.c | 3 ++-\n 3 files changed, 10 insertions(+), 3 deletions(-)", "diff": "diff --git a/app/test/test_hash_readwrite.c b/app/test/test_hash_readwrite.c\nindex 4376b099b..615767fb6 100644\n--- a/app/test/test_hash_readwrite.c\n+++ b/app/test/test_hash_readwrite.c\n@@ -298,7 +298,7 @@ test_rw_reader(void *arg)\n \n \tbegin = rte_rdtsc_precise();\n \tfor (i = 0; i < read_cnt; i++) {\n-\t\tvoid *data;\n+\t\tvoid *data = arg;\n \t\trte_hash_lookup_data(tbl_rw_test_param.h,\n \t\t\t\ttbl_rw_test_param.keys + i,\n \t\t\t\t&data);\ndiff --git a/app/test/test_link_bonding_mode4.c b/app/test/test_link_bonding_mode4.c\nindex ff54d7b91..cf12f026d 100644\n--- a/app/test/test_link_bonding_mode4.c\n+++ b/app/test/test_link_bonding_mode4.c\n@@ -585,7 +585,13 @@ bond_get_update_timeout_ms(void)\n {\n \tstruct rte_eth_bond_8023ad_conf conf;\n \n-\trte_eth_bond_8023ad_conf_get(test_params.bonded_port_id, &conf);\n+\tif (rte_eth_bond_8023ad_conf_get(test_params.bonded_port_id, &conf) < 0) {\n+\t\tRTE_LOG(DEBUG, EAL, \"Failed to get bonding configuration: \"\n+\t\t\t\t \"%s at %d\\n\", __func__, __LINE__);\n+\t\tRTE_TEST_TRACE_FAILURE(__FILE__, __LINE__, __func__);\n+\t\treturn 0;\n+\t}\n+\n \treturn conf.update_timeout_ms;\n }\n \ndiff --git a/app/test/test_memzone.c b/app/test/test_memzone.c\nindex 4d8744455..0343b0326 100644\n--- a/app/test/test_memzone.c\n+++ b/app/test/test_memzone.c\n@@ -475,7 +475,8 @@ find_max_block_free_size(unsigned int align, unsigned int socket_id)\n \tstruct rte_malloc_socket_stats stats;\n \tsize_t len, overhead;\n \n-\trte_malloc_get_socket_stats(socket_id, &stats);\n+\tif (rte_malloc_get_socket_stats(socket_id, &stats) < 0)\n+\t\treturn 0;\n \n \tlen = stats.greatest_free_size;\n \toverhead = MALLOC_ELEM_OVERHEAD;\n", "prefixes": [ "v7", "07/12" ] }{ "id": 62675, "url": "