get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 6703,
    "url": "http://patches.dpdk.org/api/patches/6703/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1438698465-27834-1-git-send-email-thomas.monjalon@6wind.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": "<1438698465-27834-1-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1438698465-27834-1-git-send-email-thomas.monjalon@6wind.com",
    "date": "2015-08-04T14:27:45",
    "name": "[dpdk-dev] pci: fix bsd build with gcc",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7df35690c27b92df8db6665acf9e8395b86c233d",
    "submitter": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1438698465-27834-1-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/6703/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/6703/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 988D0C31C;\n\tTue,  4 Aug 2015 16:29:24 +0200 (CEST)",
            "from mail-wi0-f181.google.com (mail-wi0-f181.google.com\n\t[209.85.212.181]) by dpdk.org (Postfix) with ESMTP id B641D7EB0\n\tfor <dev@dpdk.org>; Tue,  4 Aug 2015 16:29:23 +0200 (CEST)",
            "by wibud3 with SMTP id ud3so26474660wib.0\n\tfor <dev@dpdk.org>; Tue, 04 Aug 2015 07:29:23 -0700 (PDT)",
            "from localhost.localdomain (136-92-190-109.dsl.ovh.fr.\n\t[109.190.92.136]) by smtp.gmail.com with ESMTPSA id\n\ty13sm2139125wjq.26.2015.08.04.07.29.21\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 04 Aug 2015 07:29:22 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=+CsidV8NS8VOHIiJHnZHQUwDmHYl+a/bN9wmOBAcHqw=;\n\tb=jQoXT7VKc1UqSbg97KleEmHBGr0sEYcPDs2YPgWgpBg2sPQLfyHEIngd7dCyf1ckLQ\n\tlC7cD3D5qivMqF+T23H8mANuLBG3lNpLjh9WBJ0nX3otknPAdetOwzFMlZ6Y+fNlpyIY\n\tb0qHmcMFuJzesjwrlo/SL6Ebf7+X/SKfl0lEp0ntl+bfILioKmst7QZ+Qsc6iHCfOXYV\n\t8ivX8Fi8r0UxnGO5/Ae+gqMuNrdKzoWym64LXNC3i0B6kkVDIaxofpojzcltwNDY80Kk\n\tO0edmAloKQ8gw5/dDzKwBKplSKinUpkgvWgmUPSuFfe+ARX8cqqKBBl75mCR8afT0K2n\n\tXcCw==",
        "X-Gm-Message-State": "ALoCoQlK6133Dq96/498w0ndzKJNdEMsBqPMojEedNEXAlnRMGjoZuQN20a1PmFF4bXfdyvkuyue",
        "X-Received": "by 10.180.187.193 with SMTP id fu1mr33633017wic.75.1438698563558;\n\tTue, 04 Aug 2015 07:29:23 -0700 (PDT)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "Stephen Hemminger <stephen@networkplumber.org>",
        "Date": "Tue,  4 Aug 2015 16:27:45 +0200",
        "Message-Id": "<1438698465-27834-1-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.4.2",
        "Cc": "dev@dpdk.org",
        "Subject": "[dpdk-dev] [PATCH] pci: fix bsd build with gcc",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "GCC 4.8 raises this error:\nlib/librte_eal/bsdapp/eal/eal_pci.c:453:15: error: cast discards\n'__attribute__((const))' qualifier from pointer target type\n   .pi_data = *(u_int32_t *)buf,\n               ^\n\nNote: this assignment seems useless because pi_data is filled\nwith memset later.\n\nFixes: 632b2d1deeed (\"eal: provide functions to access PCI config\")\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n lib/librte_eal/bsdapp/eal/eal_pci.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c\nindex 6fa0d08..6c21fbd 100644\n--- a/lib/librte_eal/bsdapp/eal/eal_pci.c\n+++ b/lib/librte_eal/bsdapp/eal/eal_pci.c\n@@ -450,7 +450,7 @@ int rte_eal_pci_write_config(const struct rte_pci_device *dev,\n \t\t\t.pc_func = dev->addr.function,\n \t\t},\n \t\t.pi_reg = offset,\n-\t\t.pi_data = *(u_int32_t *)buf,\n+\t\t.pi_data = *(const uint32_t *)buf,\n \t\t.pi_width = len,\n \t};\n \n",
    "prefixes": [
        "dpdk-dev"
    ]
}