get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41267,
    "url": "http://patches.dpdk.org/api/patches/41267/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180619120855.78207-1-ferruh.yigit@intel.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": "<20180619120855.78207-1-ferruh.yigit@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180619120855.78207-1-ferruh.yigit@intel.com",
    "date": "2018-06-19T12:08:55",
    "name": "kni: fix build with gcc 8.1",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1ab42b8596a85c36dd840f19328a4a85444b82ec",
    "submitter": {
        "id": 324,
        "url": "http://patches.dpdk.org/api/people/324/?format=api",
        "name": "Ferruh Yigit",
        "email": "ferruh.yigit@intel.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/20180619120855.78207-1-ferruh.yigit@intel.com/mbox/",
    "series": [
        {
            "id": 167,
            "url": "http://patches.dpdk.org/api/series/167/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=167",
            "date": "2018-06-19T12:08:55",
            "name": "kni: fix build with gcc 8.1",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/167/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41267/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41267/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 2F68E37A6;\n\tTue, 19 Jun 2018 13:09:25 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 52E24343C;\n\tTue, 19 Jun 2018 13:09:21 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t19 Jun 2018 04:09:19 -0700",
            "from silpixa00399752.ir.intel.com (HELO\n\tsilpixa00399752.ger.corp.intel.com) ([10.237.222.212])\n\tby fmsmga002.fm.intel.com with ESMTP; 19 Jun 2018 04:09:18 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,242,1526367600\"; d=\"scan'208\";a=\"58910740\"",
        "From": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "To": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "Cc": "dev@dpdk.org,\n\tstable@dpdk.org",
        "Date": "Tue, 19 Jun 2018 13:08:55 +0100",
        "Message-Id": "<20180619120855.78207-1-ferruh.yigit@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] kni: fix build with gcc 8.1",
        "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": "Error observed when CONFIG_RTE_KNI_KMOD_ETHTOOL config option is\nenabled.\n\nbuild error:\nIn function ‘strncpy’,\n    inlined from ‘igb_get_drvinfo’ at\n    .../dpdk/build/build/kernel/linux/kni/igb_ethtool.c:814:2:\n    .../include/linux/string.h:246:9: error: ‘__builtin_strncpy’ output\n    may be truncated copying 31 bytes from a string of length 42\n    [-Werror=stringop-truncation]\n      return __builtin_strncpy(p, q, size);\n               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nFixed by reducing the adapter->fw_version size and adjusting strncpy\nlimit size.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Ferruh Yigit <ferruh.yigit@intel.com>\n---\n kernel/linux/kni/ethtool/igb/igb.h         | 2 +-\n kernel/linux/kni/ethtool/igb/igb_ethtool.c | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/kernel/linux/kni/ethtool/igb/igb.h b/kernel/linux/kni/ethtool/igb/igb.h\nindex 8aa2a3088..5e798ae83 100644\n--- a/kernel/linux/kni/ethtool/igb/igb.h\n+++ b/kernel/linux/kni/ethtool/igb/igb.h\n@@ -592,7 +592,7 @@ struct igb_adapter {\n \tint int_mode;\n \tu32 rss_queues;\n \tu32 vmdq_pools;\n-\tchar fw_version[43];\n+\tchar fw_version[32];\n \tu32 wvbr;\n \tstruct igb_mac_addr *mac_table;\n #ifdef CONFIG_IGB_VMDQ_NETDEV\ndiff --git a/kernel/linux/kni/ethtool/igb/igb_ethtool.c b/kernel/linux/kni/ethtool/igb/igb_ethtool.c\nindex 064528bcf..0b8b25ff1 100644\n--- a/kernel/linux/kni/ethtool/igb/igb_ethtool.c\n+++ b/kernel/linux/kni/ethtool/igb/igb_ethtool.c\n@@ -812,7 +812,7 @@ static void igb_get_drvinfo(struct net_device *netdev,\n \tstrncpy(drvinfo->version, igb_driver_version, sizeof(drvinfo->version) - 1);\n \n \tstrncpy(drvinfo->fw_version, adapter->fw_version,\n-\t\tsizeof(drvinfo->fw_version) - 1);\n+\t\tsizeof(drvinfo->fw_version));\n \tstrncpy(drvinfo->bus_info, pci_name(adapter->pdev), sizeof(drvinfo->bus_info) -1);\n \tdrvinfo->n_stats = IGB_STATS_LEN;\n \tdrvinfo->testinfo_len = IGB_TEST_LEN;\n",
    "prefixes": []
}