diff --git a/include/spdk/bdev.h b/include/spdk/bdev.h index ca498fb37..9d7dd632b 100644 --- a/include/spdk/bdev.h +++ b/include/spdk/bdev.h @@ -311,7 +311,6 @@ struct spdk_bdev_io *spdk_bdev_unmap(struct spdk_bdev *bdev, struct spdk_io_chan struct spdk_bdev_io *spdk_bdev_flush(struct spdk_bdev *bdev, struct spdk_io_channel *ch, uint64_t offset, uint64_t length, spdk_bdev_io_completion_cb cb, void *cb_arg); -int spdk_bdev_io_submit(struct spdk_bdev_io *bdev_io); int spdk_bdev_free_io(struct spdk_bdev_io *bdev_io); int spdk_bdev_reset(struct spdk_bdev *bdev, enum spdk_bdev_reset_type, spdk_bdev_io_completion_cb cb, void *cb_arg); diff --git a/lib/bdev/bdev.c b/lib/bdev/bdev.c index 4b54702f2..bc8307008 100644 --- a/lib/bdev/bdev.c +++ b/lib/bdev/bdev.c @@ -441,7 +441,7 @@ __submit_request(struct spdk_bdev *bdev, struct spdk_bdev_io *bdev_io, spdk_even } } -int +static int spdk_bdev_io_submit(struct spdk_bdev_io *bdev_io) { struct spdk_bdev *bdev = bdev_io->bdev;