From e6acab9930647dc0468fc05ca3bd07fe1aadb43e Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 25 Apr 2018 12:58:54 -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: Ia8a0f729cc4c39a9aaab0700f3c827a9766d1dd0 Fixes: e30595fbe3ac ("rte_vhost: introduce safe API for GPA translation") Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/409077 Reviewed-by: Dariusz Stojaczyk Tested-by: SPDK Automated Test System 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 fde9395b2..29f5b6130 100644 --- a/lib/vhost/rte_vhost/rte_vhost.h +++ b/lib/vhost/rte_vhost/rte_vhost.h @@ -162,7 +162,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) {