get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 59315,
    "url": "http://patches.dpdk.org/api/patches/59315/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190917075754.8310-10-amo@semihalf.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": "<20190917075754.8310-10-amo@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190917075754.8310-10-amo@semihalf.com",
    "date": "2019-09-17T07:57:53",
    "name": "[v2,09/10] net/ifc: fix maybe-uninitialized warnings for LTO build",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ef728d7a5f0ed27b977e648f094bca3195ac6d52",
    "submitter": {
        "id": 1112,
        "url": "http://patches.dpdk.org/api/people/1112/?format=api",
        "name": "Andrzej Ostruszka",
        "email": "amo@semihalf.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/20190917075754.8310-10-amo@semihalf.com/mbox/",
    "series": [
        {
            "id": 6422,
            "url": "http://patches.dpdk.org/api/series/6422/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6422",
            "date": "2019-09-17T07:57:44",
            "name": "Add an option to use LTO for DPDK build",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/6422/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/59315/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/59315/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 5E5111C00F;\n\tTue, 17 Sep 2019 09:58:20 +0200 (CEST)",
            "from mail-lj1-f193.google.com (mail-lj1-f193.google.com\n\t[209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 2A9981BFBD\n\tfor <dev@dpdk.org>; Tue, 17 Sep 2019 09:58:05 +0200 (CEST)",
            "by mail-lj1-f193.google.com with SMTP id v24so2478713ljj.3\n\tfor <dev@dpdk.org>; Tue, 17 Sep 2019 00:58:05 -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\tg1sm270659ljl.31.2019.09.17.00.58.03\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 17 Sep 2019 00:58:04 -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=gApXwU5Mr7lCBBA/zqVS/LfZzY7YW0HpPJUVU04+J/I=;\n\tb=Q4eOW8nqokLhafqZCkBBqRmEj0U8PhP1WqxfX9EUR0vx/RalWlfMHB+C2puMZG8Y9z\n\tsc4mBSAV49LLPyeGd8eyd+fCB2TvC3Vsxl1rXW9gRUnSKarG/WxoA2kcIam1151PWjBi\n\t/guFwXSZ1XD+Gntt03XTiAlcI26jqRBIiPuDToOQXZLiVjDV3x/A5Y/FwGJR8tq983vH\n\tBOCmerNZi8MJKPBE3sCr6UCkYXwWdymQKQC7AQUUVX1eV11UyTv4/ef2yWcwdDdeonx4\n\tqtIXv9hc3fWjuBJBCENB6wfNXJH6ICyXpjJcH7A7nKu5HH0nkmc1IBolY3ZNIc/moaeo\n\tZQSQ==",
        "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=gApXwU5Mr7lCBBA/zqVS/LfZzY7YW0HpPJUVU04+J/I=;\n\tb=UG4AIZBn7g7G6BVcQGV6osvm9ePaEJwt6WKere7D4z56LtUkMB3zHd3lpRky/UBDst\n\toAkkcSLP5MY4ul0c/YP4tihQncbAliI/0dTiujN6ewf1ibRVUqQIRsTY8WE22k/ewNrp\n\tcj0UqVoO/rLJ4GAUjGgoMh9BUoD38BwzOcqTACK0lSGVNpkNBuhP+VcALGcYeheIksmI\n\tJm+gkAVk0YchxcVcFlo+gPzxoZ/Qfw4tVYt+0YYnE8zN7zOwOFz5HzXkKeuWEVRNOEh8\n\tXARSXqIyloceeV1kNQbusDG9F5FnaZFDtYb/E5P/u7LETSxR7YtDIFkLm6vUIuCnHmpU\n\txzpw==",
        "X-Gm-Message-State": "APjAAAVpz8cGfIaEUYZt3eZCFZwLa/qVv0ocks6jLApAzugKuCMiEapd\n\tMz/1eYPbvfykHuCpxCwEymZm3xeGJzM12A==",
        "X-Google-Smtp-Source": "APXvYqzggMRrVMEmmOtPuGFrwNMCdJbhnbUeTOsTAhj2UzoSQMpHgPm1wtAP2NScKyLZKUTk984cEg==",
        "X-Received": "by 2002:a2e:6e18:: with SMTP id\n\tj24mr1082822ljc.158.1568707084650; \n\tTue, 17 Sep 2019 00:58:04 -0700 (PDT)",
        "From": "Andrzej Ostruszka <amo@semihalf.com>",
        "To": "dev@dpdk.org,\n\tXiao Wang <xiao.w.wang@intel.com>",
        "Cc": "mattias.ronnblom@ericsson.com, stephen@networkplumber.org,\n\tAndrzej Ostruszka <aostruszka@marvell.com>",
        "Date": "Tue, 17 Sep 2019 09:57:53 +0200",
        "Message-Id": "<20190917075754.8310-10-amo@semihalf.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190917075754.8310-1-amo@semihalf.com>",
        "References": "<20190917075754.8310-1-amo@semihalf.com>",
        "Subject": "[dpdk-dev] [PATCH v2 09/10] net/ifc: fix maybe-uninitialized\n\twarnings for 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/ifc/ifcvf_vdpa.c | 14 +++++++++-----\n 1 file changed, 9 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c\nindex 8de9ef199..4cdff8712 100644\n--- a/drivers/net/ifc/ifcvf_vdpa.c\n+++ b/drivers/net/ifc/ifcvf_vdpa.c\n@@ -304,8 +304,8 @@ vdpa_ifcvf_stop(struct ifcvf_internal *internal)\n \tstruct ifcvf_hw *hw = &internal->hw;\n \tuint32_t i;\n \tint vid;\n-\tuint64_t features;\n-\tuint64_t log_base, log_size;\n+\tuint64_t features = 0;\n+\tuint64_t log_base = 0, log_size = 0;\n \tuint64_t len;\n \n \tvid = internal->vid;\n@@ -348,6 +348,8 @@ vdpa_enable_vfio_intr(struct ifcvf_internal *internal, bool m_rx)\n \tstruct rte_vhost_vring vring;\n \tint fd;\n \n+\tvring.callfd = -1;\n+\n \tnr_vring = rte_vhost_get_vring_num(internal->vid);\n \n \tirq_set = (struct vfio_irq_set *)irq_set_buf;\n@@ -442,6 +444,7 @@ notify_relay(void *arg)\n \t}\n \tinternal->epfd = epfd;\n \n+\tvring.kickfd = -1;\n \tfor (qid = 0; qid < q_num; qid++) {\n \t\tev.events = EPOLLIN | EPOLLPRI;\n \t\trte_vhost_get_vhost_vring(internal->vid, qid, &vring);\n@@ -577,7 +580,7 @@ m_ifcvf_start(struct ifcvf_internal *internal)\n \tstruct ifcvf_hw *hw = &internal->hw;\n \tuint32_t i, nr_vring;\n \tint vid, ret;\n-\tstruct rte_vhost_vring vq;\n+\tstruct rte_vhost_vring vq = { 0 };\n \tvoid *vring_buf;\n \tuint64_t m_vring_iova = IFCVF_MEDIATED_VRING;\n \tuint64_t size;\n@@ -721,6 +724,7 @@ vring_relay(void *arg)\n \t}\n \tinternal->epfd = epfd;\n \n+\tvring.kickfd = -1;\n \tfor (qid = 0; qid < q_num; qid++) {\n \t\tev.events = EPOLLIN | EPOLLPRI;\n \t\trte_vhost_get_vhost_vring(vid, qid, &vring);\n@@ -930,11 +934,11 @@ ifcvf_dev_close(int vid)\n static int\n ifcvf_set_features(int vid)\n {\n-\tuint64_t features;\n+\tuint64_t features = 0;\n \tint did;\n \tstruct internal_list *list;\n \tstruct ifcvf_internal *internal;\n-\tuint64_t log_base, log_size;\n+\tuint64_t log_base = 0, log_size = 0;\n \n \tdid = rte_vhost_get_vdpa_device_id(vid);\n \tlist = find_internal_resource_by_did(did);\n",
    "prefixes": [
        "v2",
        "09/10"
    ]
}