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: e30595fbe3
("rte_vhost: introduce safe API for GPA translation")
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/409077
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
f0f3a48f40
commit
e6acab9930
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user