Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/3803/?format=api
https://patches.dpdk.org/api/patches/3803/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1425281223-14043-1-git-send-email-michael.qiu@intel.com/", "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", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1425281223-14043-1-git-send-email-michael.qiu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1425281223-14043-1-git-send-email-michael.qiu@intel.com", "date": "2015-03-02T07:27:03", "name": "[dpdk-dev] librte_eal/common: Fix cast from pointer to integer of different size", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "c0e0fcd1c83cd5c0fd50f19cadb6f613cec461f8", "submitter": { "id": 101, "url": "https://patches.dpdk.org/api/people/101/?format=api", "name": "Michael Qiu", "email": "michael.qiu@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1425281223-14043-1-git-send-email-michael.qiu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/3803/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/3803/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 338EF5A24;\n\tMon, 2 Mar 2015 08:27:13 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 2D859595A\n\tfor <dev@dpdk.org>; Mon, 2 Mar 2015 08:27:12 +0100 (CET)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby orsmga102.jf.intel.com with ESMTP; 01 Mar 2015 23:25:51 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby FMSMGA003.fm.intel.com with ESMTP; 01 Mar 2015 23:21:04 -0800", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t227R789007839;\n\tMon, 2 Mar 2015 15:27:07 +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 t227R4K5014077; Mon, 2 Mar 2015 15:27:06 +0800", "(from dayuqiu@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t227R4wA014073; \n\tMon, 2 Mar 2015 15:27:04 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.09,674,1418112000\"; d=\"scan'208\";a=\"461198265\"", "From": "Michael Qiu <michael.qiu@intel.com>", "To": "dev@dpdk.org", "Date": "Mon, 2 Mar 2015 15:27:03 +0800", "Message-Id": "<1425281223-14043-1-git-send-email-michael.qiu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "Subject": "[dpdk-dev] [PATCH] librte_eal/common: Fix cast from pointer to\n\tinteger of different size", "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": "/i686-native-linuxapp-gcc/include/rte_memcpy.h:592:23: error:\ncast from pointer to integer of different size\n[-Werror=pointer-to-int-cast]\n\n dstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16;\n\nType 'long long' is 64-bit in i686 platform while 'void *'\nis 32-bit.\n\nSigned-off-by: Michael Qiu <michael.qiu@intel.com>\n---\n lib/librte_eal/common/include/arch/x86/rte_memcpy.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h\nindex 7b2d382..6565c00 100644\n--- a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h\n+++ b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h\n@@ -589,12 +589,12 @@ COPY_BLOCK_64_BACK15:\n \t * unaligned copy functions require up to 15 bytes\n \t * backwards access.\n \t */\n-\tdstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16;\n+\tdstofss = 16 - (int)((long)(void *)dst & 0x0F) + 16;\n \tn -= dstofss;\n \trte_mov32((uint8_t *)dst, (const uint8_t *)src);\n \tsrc = (const uint8_t *)src + dstofss;\n \tdst = (uint8_t *)dst + dstofss;\n-\tsrcofs = (int)((long long)(const void *)src & 0x0F);\n+\tsrcofs = (int)((long)(const void *)src & 0x0F);\n \n \t/**\n \t * For aligned copy\n", "prefixes": [ "dpdk-dev" ] }{ "id": 3803, "url": "