get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115714,
    "url": "http://patchwork.dpdk.org/api/patches/115714/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220901084943.3075710-1-amitprakashs@marvell.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": "<20220901084943.3075710-1-amitprakashs@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220901084943.3075710-1-amitprakashs@marvell.com",
    "date": "2022-09-01T08:49:43",
    "name": "vhost: compilation fix for GCC-12",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0904454762f48b0aa882fa635c5c229e8af4671a",
    "submitter": {
        "id": 2699,
        "url": "http://patchwork.dpdk.org/api/people/2699/?format=api",
        "name": "Amit Prakash Shukla",
        "email": "amitprakashs@marvell.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patchwork.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220901084943.3075710-1-amitprakashs@marvell.com/mbox/",
    "series": [
        {
            "id": 24496,
            "url": "http://patchwork.dpdk.org/api/series/24496/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24496",
            "date": "2022-09-01T08:49:43",
            "name": "vhost: compilation fix for GCC-12",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/24496/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/115714/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/115714/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 50BF2A0032;\n\tThu,  1 Sep 2022 10:49:53 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D740C41155;\n\tThu,  1 Sep 2022 10:49:52 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 5945A40395;\n Thu,  1 Sep 2022 10:49:51 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 2815CueG006025;\n Thu, 1 Sep 2022 01:49:50 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ja3vemxna-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 01 Sep 2022 01:49:50 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Thu, 1 Sep 2022 01:49:48 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Thu, 1 Sep 2022 01:49:48 -0700",
            "from localhost.localdomain (unknown [10.28.36.157])\n by maili.marvell.com (Postfix) with ESMTP id 9BD853F7050;\n Thu,  1 Sep 2022 01:49:46 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=wMdLMWLPKX5fI7Kk3sgScrCKlJVQ5JIYcilbmIayNV8=;\n b=bvQR2mNFbN3vB8fl24eLS0O0L2/Jo8n3Bwh8+OhdVJIFtba3PD3Sz/e/xU9UpxfVH/GU\n Ff+OX+7AvfbIHGh3FLTQhuhyhoFIKPYTKwnNrCMv0/dO4w8LriKVIY+Gu1XpNIyOyjG8\n w4aahMzRQpeVbakzWOqF06JZ0eNxvZOOmIc4HLOcM0XN1J/01DdjHO3Nh9IMQb56uX5P\n MN7PKYcF5rgJa0QRPOgAi2Xlc0CyfPUV7iKBjPrF2uTnaoAkstPZhplK9gH5XXRsD3xR\n N7rFapq39xvubGCo8dYj6+UJfjPthuMP65QzvPr/8zcCcZz4+I359mvVzNjsZ+ASPooK LA==",
        "From": "Amit Prakash Shukla <amitprakashs@marvell.com>",
        "To": "Maxime Coquelin <maxime.coquelin@redhat.com>, Chenbo Xia\n <chenbo.xia@intel.com>",
        "CC": "<dev@dpdk.org>, <jerinj@marvell.com>, <stable@dpdk.org>, \"Amit Prakash\n Shukla\" <amitprakashs@marvell.com>",
        "Subject": "[PATCH] vhost: compilation fix for GCC-12",
        "Date": "Thu, 1 Sep 2022 14:19:43 +0530",
        "Message-ID": "<20220901084943.3075710-1-amitprakashs@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "76NRKeebIeQ_f5pzjCOfgv82jxi0e3eU",
        "X-Proofpoint-GUID": "76NRKeebIeQ_f5pzjCOfgv82jxi0e3eU",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1\n definitions=2022-09-01_06,2022-08-31_03,2022-06-22_01",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "../lib/vhost/virtio_net.c:941:35: error:\n\t\t'buf_vec[0].buf_len' may be used uninitialized\n\t\t[-Werror=maybe-uninitialized]\n  941 |         buf_len = buf_vec[vec_idx].buf_len;\n      |                   ~~~~~~~~~~~~~~~~^~~~~~~~\n../lib/vhost/virtio_net.c: In function 'virtio_dev_rx_packed':\n../lib/vhost/virtio_net.c:1285:27: note: 'buf_vec' declared here\n 1285 |         struct buf_vector buf_vec[BUF_VECTOR_MAX];\n      |                           ^~~~~~~\ncc1: all warnings being treated as errors\n\nFixes: 93520085efda (\"vhost: add packed ring single enqueue\")\nCc: stable@dpdk.org\n\nSigned-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>\n---\n lib/vhost/virtio_net.c | 12 ++++++++++++\n 1 file changed, 12 insertions(+)",
    "diff": "diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c\nindex b3d954aab4..0220bc923c 100644\n--- a/lib/vhost/virtio_net.c\n+++ b/lib/vhost/virtio_net.c\n@@ -1069,6 +1069,12 @@ vhost_enqueue_single_packed(struct virtio_net *dev,\n \telse\n \t\tmax_tries = 1;\n \n+\t/* To avoid GCC-12 warning.\n+\t * GCC-12 is not evaluating sizeof at compile time.\n+\t */\n+\tif (unlikely(size == 0))\n+\t\treturn -1;\n+\n \twhile (size > 0) {\n \t\t/*\n \t\t * if we tried all available ring items, and still\n@@ -1574,6 +1580,12 @@ vhost_enqueue_async_packed(struct virtio_net *dev,\n \telse\n \t\tmax_tries = 1;\n \n+\t/* To avoid GCC-12 warning.\n+\t * GCC-12 is not evaluating sizeof at compile time.\n+\t */\n+\tif (unlikely(size == 0))\n+\t\treturn -1;\n+\n \twhile (size > 0) {\n \t\t/*\n \t\t * if we tried all available ring items, and still\n",
    "prefixes": []
}