From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 30E8623D for ; Mon, 8 Oct 2018 06:39:35 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2018 21:39:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,355,1534834800"; d="scan'208";a="98277145" Received: from dpdk-xiao-1.sh.intel.com ([10.67.111.123]) by orsmga002.jf.intel.com with ESMTP; 07 Oct 2018 21:39:20 -0700 From: Xiao Wang To: ferruh.yigit@intel.com Cc: dev@dpdk.org, thomas@monjalon.net, chaozhu@linux.vnet.ibm.com, Xiao Wang Date: Mon, 8 Oct 2018 12:32:04 +0800 Message-Id: <20181008043204.175238-1-xiao.w.wang@intel.com> X-Mailer: git-send-email 2.15.1 Subject: [dpdk-dev] [PATCH] net/ifc: fix build with type virtio16 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2018 04:39:37 -0000 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 --- drivers/net/ifc/ifcvf_vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c index 7d3085d8d..9d5594678 100644 --- a/drivers/net/ifc/ifcvf_vdpa.c +++ b/drivers/net/ifc/ifcvf_vdpa.c @@ -285,7 +285,7 @@ ifcvf_used_ring_log(struct ifcvf_hw *hw, uint32_t queue, uint8_t *log_buf) 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], -- 2.15.1