Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/58635/?format=api
http://patchwork.dpdk.org/api/patches/58635/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20190905093239.27187-11-amo@semihalf.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20190905093239.27187-11-amo@semihalf.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190905093239.27187-11-amo@semihalf.com", "date": "2019-09-05T09:32:39", "name": "[10/10] net/qede: fix maybe-uninitialized warnings for LTO build", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "129f5aa6a62e761a44f5a14ee77daf66987ccfcb", "submitter": { "id": 1112, "url": "http://patchwork.dpdk.org/api/people/1112/?format=api", "name": "Andrzej Ostruszka", "email": "amo@semihalf.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20190905093239.27187-11-amo@semihalf.com/mbox/", "series": [ { "id": 6250, "url": "http://patchwork.dpdk.org/api/series/6250/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=6250", "date": "2019-09-05T09:32:29", "name": "Add an option to use LTO for DPDK build", "version": 1, "mbox": "http://patchwork.dpdk.org/series/6250/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/58635/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/58635/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0DF1A1EF6D;\n\tThu, 5 Sep 2019 11:33:04 +0200 (CEST)", "from mail-lj1-f196.google.com (mail-lj1-f196.google.com\n\t[209.85.208.196]) by dpdk.org (Postfix) with ESMTP id 5AB851EDD0\n\tfor <dev@dpdk.org>; Thu, 5 Sep 2019 11:32:48 +0200 (CEST)", "by mail-lj1-f196.google.com with SMTP id y23so1380375ljn.5\n\tfor <dev@dpdk.org>; Thu, 05 Sep 2019 02:32:48 -0700 (PDT)", "from localhost.localdomain (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.googlemail.com with ESMTPSA id\n\tb25sm363060lfa.90.2019.09.05.02.32.47\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 05 Sep 2019 02:32:47 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=OOTwzgVVZbZgLcv17CgsjgDYfH2VrYmyoKk+LqKCjhc=;\n\tb=PrQPlE3YgWSRmXrbu6fxAsrbbNvkDu4MLk/daDDMJgfdff63a0q1gPYc8TgzFIfmmQ\n\tNTLaECFK6U84trGpc2qldc3BLz8q/SqqTSqUKiE+xD/kRRxwkFwn++JM0X+mRdqJzaXI\n\tOQM7qVWBEfJj4hPPMytdiqdYFeU6m+jwuEHKUt/xGtWRaU+hpkriLk051Wf4pzIxx6SV\n\ta9YoKT663xanY4QNhF8TMSN3rHYr4jsxn6Uw5ZzGjthPp6lwTkBw1+BWzuTJ6e6UufHP\n\t72yuhCY25o4SvPG66J/DgzNssqPcyfjIrcLWqTETbMjZjWmu5oeceX6mrW+IzlcpU03g\n\tJpFg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=OOTwzgVVZbZgLcv17CgsjgDYfH2VrYmyoKk+LqKCjhc=;\n\tb=AA7FIvHNGJe+YLD8BQbGCkx7MQ5SaptO5CS3kKI+2tv6W1rHBLaBpkpQcK2Ej9SvRE\n\t/+gTEy9E25gfTlAmGKOqIJWIw15X7jzWYWzeG7G0Z9kjTgrolZY3YRAKKUGJZ4GqcN9M\n\tieAvYxoM9uPfGXDVLY5pOFJXfqZA/aS1QVx1ObS4XUB6C/RdNM/x1LkWWwRz50oIIVhB\n\tlRIxDXYUELG+0xhPFrJdHMdtL+MgHDepemdrOdVzlMqGROV9X733D1Hip1htv1QB9TBC\n\to1wjyjlVuIDIfLqwqHtIrYYMKhGnN/3cE/DaEzuSxJpmOX5aqeYuVWm8pujT43IEwbhc\n\txKTA==", "X-Gm-Message-State": "APjAAAUaupYWCOjV6Ux1kq24sAt2VoG2KmzKqKYnOkt//qnuNBuhiAQ+\n\tsl/235txAqcElPhTvwcjLwYDrqcj9qvkSQ==", "X-Google-Smtp-Source": "APXvYqyfz8JUoOEenl9rVVpI/Pgrh3HUj5RWaIScuKgTGJi61biiEJJHqLBEq5vRfXMwXJAxf4IaCg==", "X-Received": "by 2002:a2e:984e:: with SMTP id\n\te14mr1410538ljj.167.1567675967865; \n\tThu, 05 Sep 2019 02:32:47 -0700 (PDT)", "From": "Andrzej Ostruszka <amo@semihalf.com>", "To": "dev@dpdk.org", "Cc": "Andrzej Ostruszka <aostruszka@marvell.com>", "Date": "Thu, 5 Sep 2019 11:32:39 +0200", "Message-Id": "<20190905093239.27187-11-amo@semihalf.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190905093239.27187-1-amo@semihalf.com>", "References": "<20190905093239.27187-1-amo@semihalf.com>", "Subject": "[dpdk-dev] [PATCH 10/10] net/qede: fix maybe-uninitialized warnings\n\tfor LTO build", "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\t<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\t<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\nSigned-off-by: Andrzej Ostruszka <aostruszka@marvell.com>\n---\n drivers/net/qede/base/ecore_mcp.c | 13 +++++++------\n 1 file changed, 7 insertions(+), 6 deletions(-)", "diff": "diff --git a/drivers/net/qede/base/ecore_mcp.c b/drivers/net/qede/base/ecore_mcp.c\nindex 6c6560688..666c0fe12 100644\n--- a/drivers/net/qede/base/ecore_mcp.c\n+++ b/drivers/net/qede/base/ecore_mcp.c\n@@ -2278,7 +2278,7 @@ enum _ecore_status_t ecore_mcp_trans_speed_mask(struct ecore_hwfn *p_hwfn,\n \t\t\t\t\t\tstruct ecore_ptt *p_ptt,\n \t\t\t\t\t\tu32 *p_speed_mask)\n {\n-\tu32 transceiver_type, transceiver_state;\n+\tu32 transceiver_type = ETH_TRANSCEIVER_TYPE_NONE, transceiver_state;\n \n \tecore_mcp_get_transceiver_data(p_hwfn, p_ptt, &transceiver_state,\n \t\t\t\t &transceiver_type);\n@@ -3163,7 +3163,8 @@ enum _ecore_status_t ecore_mcp_nvm_put_file_begin(struct ecore_dev *p_dev,\n enum _ecore_status_t ecore_mcp_nvm_write(struct ecore_dev *p_dev, u32 cmd,\n \t\t\t\t\t u32 addr, u8 *p_buf, u32 len)\n {\n-\tu32 buf_idx, buf_size, nvm_cmd, nvm_offset, resp, param;\n+\tu32 buf_idx, buf_size, nvm_cmd, nvm_offset;\n+\tu32 resp = FW_MSG_CODE_ERROR, param;\n \tstruct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);\n \tenum _ecore_status_t rc = ECORE_INVAL;\n \tstruct ecore_ptt *p_ptt;\n@@ -3370,7 +3371,7 @@ enum _ecore_status_t ecore_mcp_gpio_read(struct ecore_hwfn *p_hwfn,\n \t\t\t\t\t u16 gpio, u32 *gpio_val)\n {\n \tenum _ecore_status_t rc = ECORE_SUCCESS;\n-\tu32 drv_mb_param = 0, rsp;\n+\tu32 drv_mb_param = 0, rsp = 0;\n \n \tdrv_mb_param = (gpio << DRV_MB_PARAM_GPIO_NUMBER_OFFSET);\n \n@@ -3391,7 +3392,7 @@ enum _ecore_status_t ecore_mcp_gpio_write(struct ecore_hwfn *p_hwfn,\n \t\t\t\t\t u16 gpio, u16 gpio_val)\n {\n \tenum _ecore_status_t rc = ECORE_SUCCESS;\n-\tu32 drv_mb_param = 0, param, rsp;\n+\tu32 drv_mb_param = 0, param, rsp = 0;\n \n \tdrv_mb_param = (gpio << DRV_MB_PARAM_GPIO_NUMBER_OFFSET) |\n \t\t(gpio_val << DRV_MB_PARAM_GPIO_VALUE_OFFSET);\n@@ -3481,7 +3482,7 @@ enum _ecore_status_t ecore_mcp_bist_clock_test(struct ecore_hwfn *p_hwfn,\n enum _ecore_status_t ecore_mcp_bist_nvm_test_get_num_images(\n \tstruct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, u32 *num_images)\n {\n-\tu32 drv_mb_param = 0, rsp;\n+\tu32 drv_mb_param = 0, rsp = 0;\n \tenum _ecore_status_t rc = ECORE_SUCCESS;\n \n \tdrv_mb_param = (DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES <<\n@@ -3865,7 +3866,7 @@ enum _ecore_status_t\n __ecore_mcp_resc_lock(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,\n \t\t struct ecore_resc_lock_params *p_params)\n {\n-\tu32 param = 0, mcp_resp, mcp_param;\n+\tu32 param = 0, mcp_resp = 0, mcp_param = 0;\n \tu8 opcode;\n \tenum _ecore_status_t rc;\n \n", "prefixes": [ "10/10" ] }{ "id": 58635, "url": "