diff --git a/lib/vhost/vhost.c b/lib/vhost/vhost.c index ca9fb4767..c6e5e3904 100644 --- a/lib/vhost/vhost.c +++ b/lib/vhost/vhost.c @@ -1166,4 +1166,15 @@ spdk_vhost_unlock(void) pthread_mutex_unlock(&g_spdk_vhost_mutex); } +int +spdk_vhost_init(void) +{ + return 0; +} + +void +spdk_vhost_fini(void) +{ +} + SPDK_LOG_REGISTER_TRACE_FLAG("vhost_ring", SPDK_TRACE_VHOST_RING) diff --git a/lib/vhost/vhost_scsi.c b/lib/vhost/vhost_scsi.c index c29583692..814a19a54 100644 --- a/lib/vhost/vhost_scsi.c +++ b/lib/vhost/vhost_scsi.c @@ -1127,17 +1127,6 @@ err: return -1; } -int -spdk_vhost_init(void) -{ - return 0; -} - -void -spdk_vhost_fini(void) -{ -} - static void spdk_vhost_scsi_config_json(struct spdk_vhost_dev *vdev, struct spdk_json_write_ctx *w) {