Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/14266/?format=api
http://patches.dpdk.org/api/patches/14266/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1466667620-67731-1-git-send-email-jianfeng.tan@intel.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": "<1466667620-67731-1-git-send-email-jianfeng.tan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1466667620-67731-1-git-send-email-jianfeng.tan@intel.com", "date": "2016-06-23T07:40:20", "name": "[dpdk-dev] net/virtio-user: fix implicit int to enum conversion", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6d9a58c4e99e68f5580d16762fe3042974b411af", "submitter": { "id": 313, "url": "http://patches.dpdk.org/api/people/313/?format=api", "name": "Jianfeng Tan", "email": "jianfeng.tan@intel.com" }, "delegate": { "id": 355, "url": "http://patches.dpdk.org/api/users/355/?format=api", "username": "yliu", "first_name": "Yuanhan", "last_name": "Liu", "email": "yuanhan.liu@linux.intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1466667620-67731-1-git-send-email-jianfeng.tan@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/14266/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/14266/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 D33F7C4C8;\n\tThu, 23 Jun 2016 09:40:49 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id DD2BDC484\n\tfor <dev@dpdk.org>; Thu, 23 Jun 2016 09:40:47 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga101.jf.intel.com with ESMTP; 23 Jun 2016 00:40:48 -0700", "from dpdk06.sh.intel.com ([10.239.128.225])\n\tby orsmga003.jf.intel.com with ESMTP; 23 Jun 2016 00:40:41 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.26,515,1459839600\"; d=\"scan'208\";a=\"833690481\"", "From": "Jianfeng Tan <jianfeng.tan@intel.com>", "To": "dev@dpdk.org", "Cc": "yuanhan.liu@linux.intel.com, huawei.xie@intel.com,\n\tJianfeng Tan <jianfeng.tan@intel.com>", "Date": "Thu, 23 Jun 2016 07:40:20 +0000", "Message-Id": "<1466667620-67731-1-git-send-email-jianfeng.tan@intel.com>", "X-Mailer": "git-send-email 2.1.4", "Subject": "[dpdk-dev] [PATCH] net/virtio-user: fix implicit int to enum\n\tconversion", "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": "Implicit int to enum conversion is not allowed when icc is used as\nthe compiler. It raises the compiling error like,\n /.../dpdk/drivers/net/virtio/virtio_user/vhost_user.c(257):\n error #188: enumerated type mixed with another type\n \tmsg.request = req;\n \t ^\n\nThe fix is simple, aka make such conversion explicit.\n\nFixes: 6a84c37e3975 (\"net/virtio-user: add vhost-user adapter layer\")\n\nSigned-off-by: Jianfeng Tan <jianfeng.tan@intel.com>\n---\n drivers/net/virtio/virtio_user/vhost_user.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/virtio/virtio_user/vhost_user.c b/drivers/net/virtio/virtio_user/vhost_user.c\nindex 95e80f8..e2772d5 100644\n--- a/drivers/net/virtio/virtio_user/vhost_user.c\n+++ b/drivers/net/virtio/virtio_user/vhost_user.c\n@@ -254,7 +254,7 @@ vhost_user_sock(int vhostfd, uint64_t req, void *arg)\n \n \tPMD_DRV_LOG(INFO, \"%s\", vhost_msg_strings[req]);\n \n-\tmsg.request = req;\n+\tmsg.request = (enum vhost_user_request)req;\n \tmsg.flags = VHOST_USER_VERSION;\n \tmsg.size = 0;\n \n", "prefixes": [ "dpdk-dev" ] }{ "id": 14266, "url": "