From 66f4dce74a2f1fa6243eda528eb908641c22043d Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 4 Jan 2017 15:47:38 -0700 Subject: [PATCH] bdev: remove spdk_bdev_io_submit() from API It is only used within bdev.c and can be static. Change-Id: Id6e2cd9e5dd61a3ef1e1a27993d7a5ea7728bff2 Signed-off-by: Daniel Verkamp --- include/spdk/bdev.h | 1 - lib/bdev/bdev.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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;