get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 5994,
    "url": "http://patches.dpdk.org/api/patches/5994/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1435702894-11781-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": "<1435702894-11781-1-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1435702894-11781-1-git-send-email-thomas.monjalon@6wind.com",
    "date": "2015-06-30T22:21:34",
    "name": "[dpdk-dev] cxgbe: fix build with clang",
    "commit_ref": "c55e94f",
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "54a47b5602389b0be713f49b327a25c407375c87",
    "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/1435702894-11781-1-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/5994/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/5994/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 1B89DC386;\n\tWed,  1 Jul 2015 00:22:48 +0200 (CEST)",
            "from mail-wg0-f44.google.com (mail-wg0-f44.google.com\n\t[74.125.82.44]) by dpdk.org (Postfix) with ESMTP id C80BDC386\n\tfor <dev@dpdk.org>; Wed,  1 Jul 2015 00:22:46 +0200 (CEST)",
            "by wguu7 with SMTP id u7so21385056wgu.3\n\tfor <dev@dpdk.org>; Tue, 30 Jun 2015 15:22:46 -0700 (PDT)",
            "from XPS13.localdomain (guy78-1-82-235-116-147.fbx.proxad.net.\n\t[82.235.116.147]) by mx.google.com with ESMTPSA id\n\tef10sm71028366wjd.49.2015.06.30.15.22.44\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 30 Jun 2015 15:22:45 -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=Y4pSPUWnE7Eg2gMDIZowpVp/YJ/9st2U9FZcHW8HXv8=;\n\tb=VPz8tHOSuN8h8AIx0FXrZss9c6lU5mlgy0XMrs+FxG1O6O0/y2eYyOrILAIlgpHZGH\n\t2wLQmTsIJhHo0j2W742Pdkm0r0SAPCO81kpZ8tqqE22t6fnP0QYtIMNEtTqAsNKRxc+H\n\tnDiwOl8SIcZyovQS79WdO9QbjsY0OIkOjmCDgsKGe4La6PwThKwomP7koQaqVDbMnDH8\n\tFE9KNklSikcXwYyAsqom2cTnPfOxv5ZJXJvOt4kaLHYzgEUagZwOFlckABRkWzJ+UmQN\n\t0IKVhrU7E8A2QqIH7ICXfeAT6GP//4FJNXUE/NpCFKlbS7VyjBRHoNMT2qBoNf7qz4vZ\n\tZiQA==",
        "X-Gm-Message-State": "ALoCoQlvaUKTwa4bfzOZl6lDh5ZZ3I4AUaLP81ikqvoiqirqa978jf3RWoKxborln4M57BQm2enO",
        "X-Received": "by 10.194.248.227 with SMTP id yp3mr45061526wjc.32.1435702966280;\n\tTue, 30 Jun 2015 15:22:46 -0700 (PDT)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>",
        "Date": "Wed,  1 Jul 2015 00:21:34 +0200",
        "Message-Id": "<1435702894-11781-1-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.4.2",
        "Cc": "dev@dpdk.org",
        "Subject": "[dpdk-dev] [PATCH] cxgbe: fix build with clang",
        "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_VERSION is empty in case of clang:\n\t/bin/sh: line 0: test: -ge: unary operator expected\n\nIt cannot be quoted because an integer is expected.\nSo the fix is to check empty value in a separate test.\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n drivers/net/cxgbe/Makefile | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\nThis patch is already applied.",
    "diff": "diff --git a/drivers/net/cxgbe/Makefile b/drivers/net/cxgbe/Makefile\nindex 4dfc6b0..ae12d75 100644\n--- a/drivers/net/cxgbe/Makefile\n+++ b/drivers/net/cxgbe/Makefile\n@@ -52,9 +52,9 @@ ifeq ($(CC), icc)\n CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259\n else\n #\n-# CFLAGS for gcc\n+# CFLAGS for gcc/clang\n #\n-ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)\n+ifeq ($(shell test $(CC) = gcc && test $(GCC_VERSION) -ge 44 && echo 1), 1)\n CFLAGS     += -Wno-deprecated\n endif\n CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value\n",
    "prefixes": [
        "dpdk-dev"
    ]
}