Commit e6acab99 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: e30595fb ("rte_vhost: introduce safe API for GPA translation")
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/409077


Reviewed-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent f0f3a48f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
{