get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 58630,
    "url": "http://patchwork.dpdk.org/api/patches/58630/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20190905093239.27187-6-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-6-amo@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190905093239.27187-6-amo@semihalf.com",
    "date": "2019-09-05T09:32:34",
    "name": "[05/10] app/test: fix maybe-uninitialized warnings for LTO build",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0669784f42561a39de35f089fda081f583b4cbb5",
    "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-6-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/58630/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/58630/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 7A9F61EF32;\n\tThu,  5 Sep 2019 11:32:55 +0200 (CEST)",
            "from mail-lf1-f50.google.com (mail-lf1-f50.google.com\n\t[209.85.167.50]) by dpdk.org (Postfix) with ESMTP id A218C1EDA4\n\tfor <dev@dpdk.org>; Thu,  5 Sep 2019 11:32:44 +0200 (CEST)",
            "by mail-lf1-f50.google.com with SMTP id q27so1397583lfo.10\n\tfor <dev@dpdk.org>; Thu, 05 Sep 2019 02:32:44 -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.43\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 05 Sep 2019 02:32:43 -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=Qp4s1wKZ6/zIzapPL6YFnlqGDfmTKGwX5YlcVUxgFHc=;\n\tb=km9+Co1aZLmMALZMs14vaoLIcwdYkNRT9whFwNzBjOSk3s2yNj96B092qu4HJvU/KH\n\tVBbMCkcDI0/h15fv1OF7g+xXQIGAdbg+eehl5YylO2m6zGtG3PRDuuUXxvQQoy0uJP1P\n\tyil1wvLpHZ5bwXk30RL0gVnJXRA3MRI+uRA/clu4ALESzWe+KcR1cMn7pM8ze+jGY2h/\n\t1IbqHjcrZJjoCgKLFhvKkpK3xCSzxP+9q3eZwvPhR4JQFy/VK9ujKQ3gACGT0B/bNa/i\n\tD5C1Axy7O8ZFR1X27ou4D9whn1pe4ZDTIiRsCjXWjhxPEANUOq2/anlH0dQ3kojxPZeK\n\tw8pg==",
        "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=Qp4s1wKZ6/zIzapPL6YFnlqGDfmTKGwX5YlcVUxgFHc=;\n\tb=F4cM8Dsck1hn6/2k9971OGDTn2DXpNuOd77Kw8PA35J9LMpvcV8/EdQg4PyzS9uUk2\n\tg8/4bsLGMbuo0NdFfKyOH6Z4qSBwslH3V1Bf6PNSE9lNB/n+dn023Ax7zVUkJuwKc3f9\n\t/1Ud+4vwYmPWvAFi8SgKPQDoSbPuK5GYMvgUs+yi6JatFr+fxZClKffeKhBPZHgWqRij\n\toPyzU3YpTQzkA5/ESXeAshaG9ryWoSOpjra9YrekWnTLFML5LhKnCEqOo7xgHqH87OUi\n\tCyIVBsJo+IA9ED1dM2+zKIbiM4ivORO/SPGfA2YFGJ9N3pQJ0JAcWIjYIfBBdV+zDdDO\n\tjVzg==",
        "X-Gm-Message-State": "APjAAAXcTIZiC2uuHb/dFZHXhRFGH0InYBgUrZHu7lvdmQGSh5ktg54M\n\tlbRE06iUBLZ7fsaFhe5jvKM+WpA94Vg2yQ==",
        "X-Google-Smtp-Source": "APXvYqxmTrse1JmBPbkHPTx2O9kWELyvbZYEHchNQeCDXBSpraeuIaBlp8S3pvWzw/WDMGCUs9gMzg==",
        "X-Received": "by 2002:a19:7609:: with SMTP id c9mr1597649lff.91.1567675964250; \n\tThu, 05 Sep 2019 02:32:44 -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:34 +0200",
        "Message-Id": "<20190905093239.27187-6-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 05/10] app/test: 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 app/test/test_hash_readwrite.c     | 2 +-\n app/test/test_link_bonding_mode4.c | 6 ++++--\n app/test/test_memzone.c            | 3 ++-\n 3 files changed, 7 insertions(+), 4 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 bbb4e9cce..8ca376dda 100644\n--- a/app/test/test_link_bonding_mode4.c\n+++ b/app/test/test_link_bonding_mode4.c\n@@ -224,7 +224,7 @@ configure_ethdev(uint16_t port_id, uint8_t start)\n static int\n add_slave(struct slave_conf *slave, uint8_t start)\n {\n-\tstruct rte_ether_addr addr, addr_check;\n+\tstruct rte_ether_addr addr, addr_check = { { 0 } };\n \n \t/* Some sanity check */\n \tRTE_VERIFY(test_params.slave_ports <= slave &&\n@@ -578,7 +578,9 @@ 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\treturn 0;\n+\n \treturn conf.update_timeout_ms;\n }\n \ndiff --git a/app/test/test_memzone.c b/app/test/test_memzone.c\nindex 7501b63c5..c284dcb44 100644\n--- a/app/test/test_memzone.c\n+++ b/app/test/test_memzone.c\n@@ -476,7 +476,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": [
        "05/10"
    ]
}