get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 47674,
    "url": "http://patchwork.dpdk.org/api/patches/47674/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20181101131951.91459-1-ferruh.yigit@intel.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": "<20181101131951.91459-1-ferruh.yigit@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181101131951.91459-1-ferruh.yigit@intel.com",
    "date": "2018-11-01T13:19:50",
    "name": "[1/2] bus/dpaa: fix build with gcc 9.0",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a49b8988aac258ebfc2832e9ce78385727181b02",
    "submitter": {
        "id": 324,
        "url": "http://patchwork.dpdk.org/api/people/324/?format=api",
        "name": "Ferruh Yigit",
        "email": "ferruh.yigit@intel.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/20181101131951.91459-1-ferruh.yigit@intel.com/mbox/",
    "series": [
        {
            "id": 2205,
            "url": "http://patchwork.dpdk.org/api/series/2205/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=2205",
            "date": "2018-11-01T13:19:50",
            "name": "[1/2] bus/dpaa: fix build with gcc 9.0",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/2205/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/47674/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/47674/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 9C7C11B146;\n\tThu,  1 Nov 2018 13:20:10 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id 75DDD1B127;\n\tThu,  1 Nov 2018 13:20:09 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t01 Nov 2018 05:20:08 -0700",
            "from silpixa00399752.ir.intel.com (HELO\n\tsilpixa00399752.ger.corp.intel.com) ([10.237.222.212])\n\tby fmsmga008.fm.intel.com with ESMTP; 01 Nov 2018 05:20:07 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,451,1534834800\"; d=\"scan'208\";a=\"83244703\"",
        "From": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "To": "Thomas Monjalon <thomas@monjalon.net>,\n\tHemant Agrawal <hemant.agrawal@nxp.com>,\n\tShreyansh Jain <shreyansh.jain@nxp.com>",
        "Cc": "dev@dpdk.org,\n\tFerruh Yigit <ferruh.yigit@intel.com>,\n\tstable@dpdk.org",
        "Date": "Thu,  1 Nov 2018 13:19:50 +0000",
        "Message-Id": "<20181101131951.91459-1-ferruh.yigit@intel.com>",
        "X-Mailer": "git-send-email 2.17.2",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 1/2] bus/dpaa: fix build with gcc 9.0",
        "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": "build error:\nIn function ‘fman_if_init’,\n    .../drivers/bus/dpaa/base/fman/fman.c:186:2:\n    error: ‘strncpy’ output may be truncated copying 4095 bytes from a\n           string of length 4095 [-Werror=stringop-truncation]\n    strncpy(__if->node_path, dpa_node->full_name, PATH_MAX - 1);\n\nstrncpy may result a not null-terminated string,\nreplaced it with rte_strscpy\n\nFixes: 5b22cf744689 (\"bus/dpaa: introducing FMan configurations\")\nCc: stable@dpdk.org\n\nSigned-off-by: Ferruh Yigit <ferruh.yigit@intel.com>\n---\n drivers/bus/dpaa/base/fman/fman.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c\nindex bdb700423..ddcd7d1f3 100644\n--- a/drivers/bus/dpaa/base/fman/fman.c\n+++ b/drivers/bus/dpaa/base/fman/fman.c\n@@ -13,6 +13,7 @@\n #include <fman.h>\n #include <of.h>\n #include <rte_dpaa_logs.h>\n+#include <rte_string_fns.h>\n \n #define QMI_PORT_REGS_OFFSET\t\t0x400\n \n@@ -183,7 +184,7 @@ fman_if_init(const struct device_node *dpa_node)\n \t}\n \tmemset(__if, 0, sizeof(*__if));\n \tINIT_LIST_HEAD(&__if->__if.bpool_list);\n-\tstrncpy(__if->node_path, dpa_node->full_name, PATH_MAX - 1);\n+\trte_strscpy(__if->node_path, dpa_node->full_name, PATH_MAX - 1);\n \t__if->node_path[PATH_MAX - 1] = '\\0';\n \n \t/* Obtain the MAC node used by this interface except macless */\n",
    "prefixes": [
        "1/2"
    ]
}