vhost: add missing experimental flag
This function is listed under EXPERIMENTAL in the rte_vhost_version.map, so it needs to be marked with __rte_experimental in the header file as well. Found by check-experimental-syms.sh when trying to compile DPDK with -finstrument-functions. This script didn't catch this in the normal case, since the function is declared __rte_always_inline. This also requires updating the vhost_scsi example to allow use of this newly marked experimental API. Signed-off-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
parent
f2f4990eff
commit
61af1713d3
@ -58,6 +58,7 @@ please change the definition of the RTE_TARGET environment variable)
|
||||
all:
|
||||
else
|
||||
|
||||
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
||||
CFLAGS += -D_FILE_OFFSET_BITS=64
|
||||
CFLAGS += -O2
|
||||
CFLAGS += $(WERROR_FLAGS)
|
||||
|
@ -15,6 +15,7 @@ if not cc.has_header('linux/virtio_scsi.h')
|
||||
endif
|
||||
|
||||
deps += 'vhost'
|
||||
allow_experimental_apis = true
|
||||
sources = files(
|
||||
'scsi.c', 'vhost_scsi.c'
|
||||
)
|
||||
|
@ -233,6 +233,7 @@ rte_vhost_gpa_to_vva(struct rte_vhost_memory *mem, uint64_t gpa)
|
||||
* @return
|
||||
* the host virtual address on success, 0 on failure
|
||||
*/
|
||||
__rte_experimental
|
||||
static __rte_always_inline uint64_t
|
||||
rte_vhost_va_from_guest_pa(struct rte_vhost_memory *mem,
|
||||
uint64_t gpa, uint64_t *len)
|
||||
|
Loading…
x
Reference in New Issue
Block a user