bdev: Remove spdk_bdev_unregister from public API

This is only needed inside of bdev modules.

Change-Id: Ia532a0bd40ead5ff08a0e352f9aeb60f3898245b
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/364118
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Ben Walker 2017-06-05 11:01:15 -07:00
parent 5712088a55
commit fc6e9354ca
4 changed files with 2 additions and 10 deletions

View File

@ -108,7 +108,6 @@ struct spdk_bdev_io_stat {
};
struct spdk_bdev *spdk_bdev_get_by_name(const char *bdev_name);
void spdk_bdev_unregister(struct spdk_bdev *bdev);
struct spdk_bdev *spdk_bdev_first(void);
struct spdk_bdev *spdk_bdev_next(struct spdk_bdev *prev);

View File

@ -349,6 +349,8 @@ struct spdk_bdev_io {
};
void spdk_bdev_register(struct spdk_bdev *bdev);
void spdk_bdev_unregister(struct spdk_bdev *bdev);
void spdk_bdev_io_get_buf(struct spdk_bdev_io *bdev_io, spdk_bdev_io_get_buf_cb cb);
struct spdk_bdev_io *spdk_bdev_get_io(void);
struct spdk_bdev_io *spdk_bdev_get_child_io(struct spdk_bdev_io *parent,

View File

@ -59,11 +59,6 @@ test_setup(void)
return 0;
}
void
spdk_bdev_unregister(struct spdk_bdev *bdev)
{
}
const char *
spdk_bdev_get_name(const struct spdk_bdev *bdev)
{

View File

@ -183,10 +183,6 @@ spdk_bdev_scsi_execute(struct spdk_bdev *bdev, struct spdk_scsi_task *task)
}
}
void spdk_bdev_unregister(struct spdk_bdev *bdev)
{
}
struct spdk_io_channel *
spdk_bdev_get_io_channel(struct spdk_bdev *bdev)
{