Show a patch.

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

{
    "id": 327,
    "url": "https://patches.dpdk.org/api/patches/327/?format=api",
    "web_url": "https://patches.dpdk.org/patch/327/",
    "project": {
        "id": 1,
        "url": "https://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"
    },
    "msgid": "<1410247299-4365-6-git-send-email-helin.zhang@intel.com>",
    "date": "2014-09-09T07:21:29",
    "name": "[dpdk-dev,05/15] i40e: force a shifted '1' to be 'unsigned'",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7fe5788b52c3465a941b207ed05e9c6b7ba84a77",
    "submitter": {
        "id": 14,
        "url": "https://patches.dpdk.org/api/people/14/?format=api",
        "name": "Helin Zhang",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/327/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/327/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/327/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,491,1406617200\"; d=\"scan'208\";a=\"600087252\"",
        "Precedence": "list",
        "X-Mailman-Version": "2.1.15",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "References": "<1410247299-4365-1-git-send-email-helin.zhang@intel.com>",
        "X-BeenThere": "dev@dpdk.org",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 05/15] i40e: force a shifted '1' to be 'unsigned'",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id CB70CB3A1;\n\tTue,  9 Sep 2014 09:17:36 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 908211FE\n\tfor <dev@dpdk.org>; Tue,  9 Sep 2014 09:17:35 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP; 09 Sep 2014 00:16:31 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 09 Sep 2014 00:22:02 -0700",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id s897M0jE008584;\n\tTue, 9 Sep 2014 15:22:00 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid s897Lwaf004460; Tue, 9 Sep 2014 15:22:00 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s897LwZi004456; \n\tTue, 9 Sep 2014 15:21:58 +0800"
        ],
        "To": "dev@dpdk.org",
        "X-Mailer": "git-send-email 1.7.4.1",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-ExtLoop1": "1",
        "Date": "Tue,  9 Sep 2014 15:21:29 +0800",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "In-Reply-To": "<1410247299-4365-1-git-send-email-helin.zhang@intel.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Message-Id": "<1410247299-4365-6-git-send-email-helin.zhang@intel.com>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "Force a shifted '1' to be 'unsiged' to avoid shifting a signed int.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\nReviewed-by: Chen Jing <jing.d.chen@intel.com>\n---\n lib/librte_pmd_i40e/i40e/i40e_hmc.h | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/librte_pmd_i40e/i40e/i40e_hmc.h b/lib/librte_pmd_i40e/i40e/i40e_hmc.h\nindex d1d084a..eb629fc 100644\n--- a/lib/librte_pmd_i40e/i40e/i40e_hmc.h\n+++ b/lib/librte_pmd_i40e/i40e/i40e_hmc.h\n@@ -38,7 +38,6 @@ POSSIBILITY OF SUCH DAMAGE.\n \n /* forward-declare the HW struct for the compiler */\n struct i40e_hw;\n-enum i40e_status_code;\n \n #define I40E_HMC_INFO_SIGNATURE\t\t0x484D5347 /* HMSG */\n #define I40E_HMC_PD_CNT_IN_SD\t\t512\n@@ -135,7 +134,7 @@ struct i40e_hmc_info {\n \t\t((((type) == I40E_SD_TYPE_PAGED) ? 0 : 1) <<\t\t\\\n \t\tI40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT) |\t\t\t\\\n \t\t(1 << I40E_PFHMC_SDDATALOW_PMSDVALID_SHIFT);\t\t\\\n-\tval3 = (sd_index) | (1 << I40E_PFHMC_SDCMD_PMSDWR_SHIFT);\t\\\n+\tval3 = (sd_index) | (1u << I40E_PFHMC_SDCMD_PMSDWR_SHIFT);\t\\\n \twr32((hw), I40E_PFHMC_SDDATAHIGH, val1);\t\t\t\\\n \twr32((hw), I40E_PFHMC_SDDATALOW, val2);\t\t\t\t\\\n \twr32((hw), I40E_PFHMC_SDCMD, val3);\t\t\t\t\\\n@@ -154,7 +153,7 @@ struct i40e_hmc_info {\n \t\tI40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT) |\t\t\\\n \t\t((((type) == I40E_SD_TYPE_PAGED) ? 0 : 1) <<\t\t\\\n \t\tI40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT);\t\t\t\\\n-\tval3 = (sd_index) | (1 << I40E_PFHMC_SDCMD_PMSDWR_SHIFT);\t\\\n+\tval3 = (sd_index) | (1u << I40E_PFHMC_SDCMD_PMSDWR_SHIFT);\t\\\n \twr32((hw), I40E_PFHMC_SDDATAHIGH, 0);\t\t\t\t\\\n \twr32((hw), I40E_PFHMC_SDDATALOW, val2);\t\t\t\t\\\n \twr32((hw), I40E_PFHMC_SDCMD, val3);\t\t\t\t\\\n",
    "prefixes": [
        "dpdk-dev",
        "05/15"
    ]
}