get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 4509,
    "url": "http://patches.dpdk.org/api/patches/4509/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1430324134-25654-3-git-send-email-cchemparathy@ezchip.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": "<1430324134-25654-3-git-send-email-cchemparathy@ezchip.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1430324134-25654-3-git-send-email-cchemparathy@ezchip.com",
    "date": "2015-04-29T16:15:26",
    "name": "[dpdk-dev,02/10] mempool: silence -Wcast-align on pointer arithmetic",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f907669384849e5368833ab46eaff1e71479f459",
    "submitter": {
        "id": 132,
        "url": "http://patches.dpdk.org/api/people/132/?format=api",
        "name": "Cyril Chemparathy",
        "email": "cchemparathy@ezchip.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1430324134-25654-3-git-send-email-cchemparathy@ezchip.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/4509/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/4509/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 9B825C92A;\n\tWed, 29 Apr 2015 18:16:09 +0200 (CEST)",
            "from sclab-apps-2.localdomain (sc-fw1.tilera.com [12.218.212.162])\n\tby dpdk.org (Postfix) with ESMTP id DD713C8FC\n\tfor <dev@dpdk.org>; Wed, 29 Apr 2015 18:15:55 +0200 (CEST)",
            "by sclab-apps-2.localdomain (Postfix, from userid 1318)\n\tid 7F92C22071E; Wed, 29 Apr 2015 09:15:54 -0700 (PDT)"
        ],
        "X-CheckPoint": "{554103BA-3-A3D4DA0C-C0000002}",
        "From": "Cyril Chemparathy <cchemparathy@ezchip.com>",
        "To": "dev@dpdk.org",
        "Date": "Wed, 29 Apr 2015 09:15:26 -0700",
        "Message-Id": "<1430324134-25654-3-git-send-email-cchemparathy@ezchip.com>",
        "X-Mailer": "git-send-email 2.1.2",
        "In-Reply-To": "<1430324134-25654-1-git-send-email-cchemparathy@ezchip.com>",
        "References": "<1430324134-25654-1-git-send-email-cchemparathy@ezchip.com>",
        "Subject": "[dpdk-dev] [PATCH 02/10] mempool: silence -Wcast-align on pointer\n\tarithmetic",
        "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": "Translating from a mempool object to the mempool pointer does not break\nalignment constraints.  However, the compiler is unaware of this fact and\ncomplains on -Wcast-align.  This patch modifies the code to use RTE_PTR_SUB(),\nthereby silencing the compiler by casting through (void *).\n\nSigned-off-by: Cyril Chemparathy <cchemparathy@ezchip.com>\n---\n lib/librte_mempool/rte_mempool.h | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)",
    "diff": "diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h\nindex 9001312..1fb4184 100644\n--- a/lib/librte_mempool/rte_mempool.h\n+++ b/lib/librte_mempool/rte_mempool.h\n@@ -236,15 +236,13 @@ struct rte_mempool {\n  */\n static inline struct rte_mempool **__mempool_from_obj(void *obj)\n {\n-\tstruct rte_mempool **mpp;\n \tunsigned off;\n \n \toff = sizeof(struct rte_mempool *);\n #ifdef RTE_LIBRTE_MEMPOOL_DEBUG\n \toff += sizeof(uint64_t);\n #endif\n-\tmpp = (struct rte_mempool **)((char *)obj - off);\n-\treturn mpp;\n+\treturn RTE_PTR_SUB(obj, off);\n }\n \n /**\n",
    "prefixes": [
        "dpdk-dev",
        "02/10"
    ]
}