From 87036cef6fd394e40019e79c5cb2c1469d010887 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 25 Apr 2018 12:54:26 -0700 Subject: [PATCH] vhost: fix build with DPDK 17.02 and older __rte_always_inline was added in DPDK 17.05; replace the single use with a regular 'inline' to restore compatibility with older DPDK versions. Change-Id: Ifa92ab781e9b597fca0c9a92f562027fec6b5337 Fixes: 867063e463c1 ("rte_vhost: introduce safe API for GPA translation") Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/409076 Tested-by: SPDK Automated Test System Reviewed-by: Dariusz Stojaczyk Reviewed-by: Jim Harris --- lib/vhost/rte_vhost/rte_vhost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vhost/rte_vhost/rte_vhost.h b/lib/vhost/rte_vhost/rte_vhost.h index 56122a225..afc353553 100644 --- a/lib/vhost/rte_vhost/rte_vhost.h +++ b/lib/vhost/rte_vhost/rte_vhost.h @@ -159,7 +159,7 @@ rte_vhost_gpa_to_vva(struct rte_vhost_memory *mem, uint64_t gpa) * updated with actual size mapped * @return * the host virtual address on success, 0 on failure */ -static __rte_always_inline uint64_t +static inline uint64_t rte_vhost_va_from_guest_pa(struct rte_vhost_memory *mem, uint64_t gpa, uint64_t *len) {