The typedef of "__virtio16" is introduced into Linux kernel in v3.19.
To prevent build error on old kernel, this patch replaces the
"__virtio" usage with "uint16_t".
Fixes:
d7fe5a2861e7 ("net/ifc: support live migration")
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
pfn = hw->vring[queue].used / PAGE_SIZE;
size = hw->vring[queue].size * sizeof(struct vring_used_elem) +
- sizeof(__virtio16) * 3;
+ sizeof(uint16_t) * 3;
for (i = 0; i <= size / PAGE_SIZE; i++)
__sync_fetch_and_or_8(&log_buf[(pfn + i) / 8],