get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/61651/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 61651,
    "url": "http://patches.dpdk.org/api/patches/61651/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191022115412.8837-11-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": "<20191022115412.8837-11-aostruszka@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191022115412.8837-11-aostruszka@marvell.com",
    "date": "2019-10-22T11:54:12",
    "name": "[v4,10/10] net/qede: clean LTO build warnings (maybe-uninitialized)",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "129f5aa6a62e761a44f5a14ee77daf66987ccfcb",
    "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/20191022115412.8837-11-aostruszka@marvell.com/mbox/",
    "series": [
        {
            "id": 6983,
            "url": "http://patches.dpdk.org/api/series/6983/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6983",
            "date": "2019-10-22T11:54:02",
            "name": "Add an option to use LTO for DPDK build",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/6983/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/61651/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/61651/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 A007D1BF25;\n\tTue, 22 Oct 2019 13:54:49 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n\t[67.231.156.173]) by dpdk.org (Postfix) with ESMTP id A0B801BEEF\n\tfor <dev@dpdk.org>; Tue, 22 Oct 2019 13:54:38 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n\tby mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n\tx9MBdea8006226; Tue, 22 Oct 2019 04:54:38 -0700",
            "from sc-exch01.marvell.com ([199.233.58.181])\n\tby mx0b-0016f401.pphosted.com with ESMTP id 2vsw610sud-2\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); \n\tTue, 22 Oct 2019 04:54:37 -0700",
            "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tTue, 22 Oct 2019 04:54:36 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Tue, 22 Oct 2019 04:54:36 -0700",
            "from amok.marvell.com (unknown [10.95.130.40])\n\tby maili.marvell.com (Postfix) with ESMTP id E6A1E3F7040;\n\tTue, 22 Oct 2019 04:54:34 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n\th=from : to : cc :\n\tsubject : date : message-id : in-reply-to : references : mime-version\n\t: content-type : content-transfer-encoding; s=pfpt0818;\n\tbh=OD2dnjHtAjQsbUHJoI0dGlyxfDUfBSB5NH8la7/Y9Ws=;\n\tb=emf+WoQ9EUF30pts/M/bVU2NXqu/Wrx0A+3TtKrMpX3UgQaC7pKlZrzE1b0kgVtc4p6u\n\t8rvl4gB79MHHF9I2gZE4lhPlDhE5Mz2rPbecZbqtA7w3ssk/xFCF8QG94YRoG9RYnhks\n\t4fcRh8vIsggEOHiCuzApbqy8magdAmXUaqISCEaYEOyU6aEmkWEkRCJ6UcwvnHRpsQRw\n\tH0tqdVR0y8/9ut//npWLFqzQyDflT39X0M/AvZHq1FAkgSwXynoi3HxgXf3iV6SwVUJL\n\tnLhQlUynOXq8vTmFaPcpg7wnyNxTSlsK/dOZe/31cx66gfUKyZ3JyTmRY0C23mR8xnVJ\n\tmQ== ",
        "From": "Andrzej Ostruszka <aostruszka@marvell.com>",
        "To": "<dev@dpdk.org>, Rasesh Mody <rmody@marvell.com>, Shahed Shaikh\n\t<shshaikh@marvell.com>",
        "CC": "<mattias.ronnblom@ericsson.com>, <stephen@networkplumber.org>",
        "Date": "Tue, 22 Oct 2019 13:54:12 +0200",
        "Message-ID": "<20191022115412.8837-11-aostruszka@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20191022115412.8837-1-aostruszka@marvell.com>",
        "References": "<20190917075754.8310-1-amo@semihalf.com>\n\t<20191022115412.8837-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,1.0.8\n\tdefinitions=2019-10-22_03:2019-10-22,2019-10-22 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v4 10/10] net/qede: 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\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\nExemplary compiler warning to suppress (with LTO enabled):\nerror: ‘transceiver_type’ may be used uninitialized in this function\n[-Werror=maybe-uninitialized]\n  switch (transceiver_type) {\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": [
        "v4",
        "10/10"
    ]
}