Fixed: warning: cast from pointer to integer of different size

Reported-by: kbuild test robot <fengguang...@intel.com>
Signed-off-by: Haiyang Zhang <haiya...@microsoft.com>
Reviewed-by: K. Y. Srinivasan <k...@microsoft.com>

---
 drivers/net/hyperv/netvsc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index f5f0f09..8c03033 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -500,7 +500,7 @@ int netvsc_send(struct hv_device *device,
        int ret = 0;
        struct nvsp_message sendMessage;
        struct net_device *ndev;
-       u64 req_id;
+       ulong req_id;
 
        net_device = get_outbound_net_device(device);
        if (!net_device)
@@ -522,7 +522,7 @@ int netvsc_send(struct hv_device *device,
        sendMessage.msg.v1_msg.send_rndis_pkt.send_buf_section_size = 0;
 
        if (packet->completion.send.send_completion)
-               req_id = (u64)packet;
+               req_id = (ulong)packet;
        else
                req_id = 0;
 
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to