net/virtio-user: fix build with icc
authorJianfeng Tan <jianfeng.tan@intel.com>
Sun, 26 Jun 2016 13:48:13 +0000 (13:48 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Thu, 30 Jun 2016 05:46:29 +0000 (07:46 +0200)
commitd911c94d25277cc16d87b1b4bb3771a7545c647d
treef0ffead247256265051c3385b1d97f2fb457df20
parent5f05e95cd5d90c2132bbb238ef46638f68b478da
net/virtio-user: fix build with icc

Implicit int to enum conversion is not allowed when icc is used as
the compiler. It raises the compiling error like,
    drivers/net/virtio/virtio_user/vhost_user.c(257):
        error #188: enumerated type mixed with another type
    msg.request = req;
                ^

The fix is simple, change the type of parameter req to enum
vhost_user_request.

Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer")

Suggested-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_user/vhost.h
drivers/net/virtio/virtio_user/vhost_user.c