From 1cd3705ecb8dff2145b62d60fd87a473e39780e3 Mon Sep 17 00:00:00 2001 From: Dariusz Stojaczyk Date: Thu, 10 Aug 2017 19:56:20 +0200 Subject: [PATCH] vhost: removed unused and unsafe API from public headers Change-Id: Ia254885e2603f3b10b92910b53ce0db9e95c22b5 Signed-off-by: Dariusz Stojaczyk Reviewed-on: https://review.gerrithub.io/373760 Reviewed-by: Jim Harris Reviewed-by: Daniel Verkamp Tested-by: SPDK Automated Test System --- include/spdk/vhost.h | 3 --- lib/vhost/vhost_internal.h | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/spdk/vhost.h b/include/spdk/vhost.h index 4342e907d5..5652815034 100644 --- a/include/spdk/vhost.h +++ b/include/spdk/vhost.h @@ -57,11 +57,9 @@ struct spdk_vhost_dev; typedef int (*spdk_vhost_event_fn)(struct spdk_vhost_dev *, void *); -struct spdk_vhost_dev *spdk_vhost_dev_find(const char *ctrlr_name); const char *spdk_vhost_dev_get_name(struct spdk_vhost_dev *ctrl); uint64_t spdk_vhost_dev_get_cpumask(struct spdk_vhost_dev *ctrl); -int spdk_vhost_scsi_controller_construct(void); int spdk_vhost_scsi_dev_construct(const char *name, const char *cpumask); int spdk_vhost_scsi_dev_remove(struct spdk_vhost_dev *vdev); struct spdk_scsi_dev *spdk_vhost_scsi_dev_get_dev(struct spdk_vhost_dev *ctrl, uint8_t num); @@ -74,7 +72,6 @@ int spdk_vhost_blk_construct(const char *name, const char *cpumask, const char * bool readonly); int spdk_vhost_blk_destroy(struct spdk_vhost_dev *dev); struct spdk_bdev *spdk_vhost_blk_get_dev(struct spdk_vhost_dev *ctrlr); -bool spdk_vhost_blk_get_readonly(struct spdk_vhost_dev *vdev); /** * Call function on reactor of given vhost controller. diff --git a/lib/vhost/vhost_internal.h b/lib/vhost/vhost_internal.h index c742d82e6c..7ebef07aaa 100644 --- a/lib/vhost/vhost_internal.h +++ b/lib/vhost/vhost_internal.h @@ -121,6 +121,7 @@ struct spdk_vhost_dev { SPDK_CACHE_LINE_SIZE))); }; +struct spdk_vhost_dev *spdk_vhost_dev_find(const char *ctrlr_name); void spdk_vhost_dev_mem_register(struct spdk_vhost_dev *vdev); void spdk_vhost_dev_mem_unregister(struct spdk_vhost_dev *vdev); @@ -147,6 +148,7 @@ int spdk_vhost_dev_construct(struct spdk_vhost_dev *vdev, const char *name, cons enum spdk_vhost_dev_type type, const struct spdk_vhost_dev_backend *backend); int spdk_vhost_dev_remove(struct spdk_vhost_dev *vdev); +int spdk_vhost_scsi_controller_construct(void); int spdk_vhost_blk_controller_construct(void); void spdk_vhost_dump_config_json(struct spdk_vhost_dev *vdev, struct spdk_json_write_ctx *w); void spdk_vhost_dev_backend_event_done(void *event_ctx, int response);