xenvirt: fix 32-bit build
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Sun, 10 Apr 2016 19:25:51 +0000 (20:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 10 Apr 2016 19:36:54 +0000 (21:36 +0200)
commit57d78d33bedce710a7fb64c44b47d1cd0eed6fdc
tree5c265199c80a3c2a236310827d4379a90613694f
parentc7970afddfb2f06fea587b69cba69006151716fc
xenvirt: fix 32-bit build

Compilation fails on 32 bits on Xen driver, due to wrong casting:

drivers/net/xenvirt/virtqueue.h: In function ‘virtqueue_enqueue_xmit’:
drivers/net/xenvirt/virtqueue.h:234:24: error: cast from pointer to integer
                            of different size [-Werror=pointer-to-int-cast]
  start_dp[idx].addr  = rte_pktmbuf_mtod(cookie, uint64_t);
                        ^

Fixes: d6b324c00fc9 ("mbuf: get DMA address")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
drivers/net/xenvirt/virtqueue.h