bdev/virtio: minor cleanup

Change-Id: Ibb63af85461da8940486d1aeaca5886d3d027b71
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/405377
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2018-03-27 12:40:27 +02:00 committed by Daniel Verkamp
parent b351819679
commit 94de7e9175

View File

@ -181,10 +181,10 @@ struct bdev_virtio_io_channel {
struct spdk_poller *poller;
};
TAILQ_HEAD(, virtio_scsi_dev) g_virtio_scsi_devs =
static TAILQ_HEAD(, virtio_scsi_dev) g_virtio_scsi_devs =
TAILQ_HEAD_INITIALIZER(g_virtio_scsi_devs);
pthread_mutex_t g_virtio_scsi_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t g_virtio_scsi_mutex = PTHREAD_MUTEX_INITIALIZER;
/** Module finish in progress */
static bool g_bdev_virtio_finish = false;
@ -1685,9 +1685,8 @@ virtio_scsi_dev_scan_tgt(struct virtio_scsi_dev *svdev, uint8_t target)
}
static void
bdev_virtio_initial_scan_complete(void *ctx __attribute__((unused)),
int result __attribute__((unused)),
struct spdk_bdev **bdevs __attribute__((unused)), size_t bdevs_cnt __attribute__((unused)))
bdev_virtio_initial_scan_complete(void *ctx, int result,
struct spdk_bdev **bdevs, size_t bdevs_cnt)
{
struct virtio_scsi_dev *svdev;