Show a patch.

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

{
    "id": 44855,
    "url": "http://patches.dpdk.org/api/patches/44855/",
    "web_url": "http://patches.dpdk.org/patch/44855/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1537277516-8876-13-git-send-email-hemant.agrawal@nxp.com>",
    "date": "2018-09-18T13:31:55",
    "name": "[v2,12/13] bus/dpaa: add check for re-definition in compat",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4ee174d36270edfa65cfe2da953267084df14743",
    "submitter": {
        "id": 477,
        "url": "http://patches.dpdk.org/api/people/477/",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patches.dpdk.org/patch/44855/mbox/",
    "series": [
        {
            "id": 1371,
            "url": "http://patches.dpdk.org/api/series/1371/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1371",
            "date": "2018-09-18T13:31:43",
            "name": "NXP DPAA driver enhancements",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/1371/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44855/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44855/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.7.4",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B05405F1A;\n\tTue, 18 Sep 2018 15:34:20 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby dpdk.org (Postfix) with ESMTP id A493634F3\n\tfor <dev@dpdk.org>; Tue, 18 Sep 2018 15:34:08 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 71E511A0148;\n\tTue, 18 Sep 2018 15:34:08 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 57B9C1A013C;\n\tTue, 18 Sep 2018 15:34:06 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n\t[10.232.134.28])\n\tby invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 086E240302;\n\tTue, 18 Sep 2018 21:34:02 +0800 (SGT)"
        ],
        "References": "<1535539660-20228-2-git-send-email-hemant.agrawal@nxp.com>\n\t<1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com>",
        "Delivered-To": "patchwork@dpdk.org",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1537277516-8876-13-git-send-email-hemant.agrawal@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Precedence": "list",
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@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>",
        "To": "dev@dpdk.org,\n\tthomas@monjalon.net,\n\tferruh.yigit@intel.com",
        "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>",
        "Date": "Tue, 18 Sep 2018 19:01:55 +0530",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 12/13] bus/dpaa: add check for re-definition\n\tin compat"
    },
    "content": "Few fields in compat are giving re-defination error\nwith new drivers such as caam_jr.\nChecks have been added.\n\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n drivers/bus/dpaa/include/compat.h | 20 ++++++++++++++------\n 1 file changed, 14 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/bus/dpaa/include/compat.h b/drivers/bus/dpaa/include/compat.h\nindex 92241d2..4122657 100644\n--- a/drivers/bus/dpaa/include/compat.h\n+++ b/drivers/bus/dpaa/include/compat.h\n@@ -57,8 +57,9 @@\n #ifndef __packed\n #define __packed\t__rte_packed\n #endif\n+#ifndef noinline\n #define noinline\t__attribute__((noinline))\n-\n+#endif\n #define L1_CACHE_BYTES 64\n #define ____cacheline_aligned __attribute__((aligned(L1_CACHE_BYTES)))\n #define __stringify_1(x) #x\n@@ -75,20 +76,25 @@\n \t\tprintf(fmt, ##args); \\\n \t\tfflush(stdout); \\\n \t} while (0)\n-\n+#ifndef pr_crit\n #define pr_crit(fmt, args...)\t prflush(\"CRIT:\" fmt, ##args)\n+#endif\n+#ifndef pr_err\n #define pr_err(fmt, args...)\t prflush(\"ERR:\" fmt, ##args)\n+#endif\n+#ifndef pr_warn\n #define pr_warn(fmt, args...)\t prflush(\"WARN:\" fmt, ##args)\n+#endif\n+#ifndef pr_info\n #define pr_info(fmt, args...)\t prflush(fmt, ##args)\n-\n-#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS\n-#ifdef pr_debug\n-#undef pr_debug\n #endif\n+#ifndef pr_debug\n+#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS\n #define pr_debug(fmt, args...)\tprintf(fmt, ##args)\n #else\n #define pr_debug(fmt, args...) {}\n #endif\n+#endif\n \n #define DPAA_BUG_ON(x) RTE_ASSERT(x)\n \n@@ -256,7 +262,9 @@ __bswap_24(uint32_t x)\n #define be16_to_cpu(x) rte_be_to_cpu_16(x)\n \n #define cpu_to_be64(x) rte_cpu_to_be_64(x)\n+#if !defined(cpu_to_be32)\n #define cpu_to_be32(x) rte_cpu_to_be_32(x)\n+#endif\n #define cpu_to_be16(x) rte_cpu_to_be_16(x)\n \n #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN\n",
    "prefixes": [
        "v2",
        "12/13"
    ]
}