From 3ac37f5db06bfda79fbc85b86481a854e9b5a5a2 Mon Sep 17 00:00:00 2001 From: paul luse Date: Tue, 14 May 2019 16:18:31 -0400 Subject: [PATCH] bdev/raid: remove unused stubs Unclear why they were here to begin with. Change-Id: Ic9b896796a9c56552972e3ef8075934d4b3f6497 Signed-off-by: paul luse Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/454515 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- test/unit/lib/bdev/bdev_raid.c/bdev_raid_ut.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/unit/lib/bdev/bdev_raid.c/bdev_raid_ut.c b/test/unit/lib/bdev/bdev_raid.c/bdev_raid_ut.c index 47eabbe36..5c0232f6d 100644 --- a/test/unit/lib/bdev/bdev_raid.c/bdev_raid_ut.c +++ b/test/unit/lib/bdev/bdev_raid.c/bdev_raid_ut.c @@ -326,9 +326,6 @@ spdk_put_io_channel(struct spdk_io_channel *ch) } DEFINE_STUB(spdk_get_io_channel, struct spdk_io_channel *, (void *io_device), NULL); -DEFINE_STUB_V(spdk_poller_unregister, (struct spdk_poller **ppoller)); -DEFINE_STUB(spdk_poller_register, struct spdk_poller *, (spdk_poller_fn fn, - void *arg, uint64_t period_microseconds), (void *)1); DEFINE_STUB_V(spdk_io_device_unregister, (void *io_device, spdk_io_device_unregister_cb unregister_cb)); @@ -385,16 +382,12 @@ spdk_for_each_thread(spdk_msg_fn fn, void *ctx, spdk_msg_fn cpl) cpl(ctx); } -DEFINE_STUB(spdk_get_thread, struct spdk_thread *, (void), NULL); - void spdk_thread_send_msg(const struct spdk_thread *thread, spdk_msg_fn fn, void *ctx) { fn(ctx); } -DEFINE_STUB(spdk_env_get_current_core, uint32_t, (void), 0); - void spdk_bdev_free_io(struct spdk_bdev_io *bdev_io) { @@ -530,7 +523,6 @@ spdk_bdev_module_claim_bdev(struct spdk_bdev *bdev, struct spdk_bdev_desc *desc, } DEFINE_STUB(spdk_bdev_register, int, (struct spdk_bdev *bdev), 0); -DEFINE_STUB(spdk_env_get_last_core, uint32_t, (void), 0); DEFINE_STUB(spdk_json_decode_string, int, (const struct spdk_json_val *val, void *out), 0); int