From 91eb55fc0a678144235a9b913658a16dbd7f6fee Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Mon, 16 Sep 2019 11:08:28 -0700 Subject: [PATCH] test/iscsi: Remove stubs for event calls The calls were removed from the code, so we don't need the stubs anymore. Change-Id: Ie3616d186ab172c3b7a6223b4ff754308fad9dc0 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468503 Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Shuhei Matsumoto Reviewed-by: Paul Luse --- test/unit/lib/iscsi/common.c | 3 --- test/unit/lib/iscsi/conn.c/conn_ut.c | 6 ------ 2 files changed, 9 deletions(-) diff --git a/test/unit/lib/iscsi/common.c b/test/unit/lib/iscsi/common.c index 3a987d2bc4..62eb8ed46f 100644 --- a/test/unit/lib/iscsi/common.c +++ b/test/unit/lib/iscsi/common.c @@ -97,9 +97,6 @@ spdk_scsi_dev_get_name(const struct spdk_scsi_dev *dev) return NULL; } -DEFINE_STUB(spdk_event_allocate, struct spdk_event *, - (uint32_t core, spdk_event_fn fn, void *arg1, void *arg2), NULL); - DEFINE_STUB(spdk_scsi_dev_construct, struct spdk_scsi_dev *, (const char *name, const char **bdev_name_list, int *lun_id_list, int num_luns, uint8_t protocol_id, diff --git a/test/unit/lib/iscsi/conn.c/conn_ut.c b/test/unit/lib/iscsi/conn.c/conn_ut.c index 63294ad103..4f66a85242 100644 --- a/test/unit/lib/iscsi/conn.c/conn_ut.c +++ b/test/unit/lib/iscsi/conn.c/conn_ut.c @@ -49,12 +49,6 @@ static TAILQ_HEAD(, spdk_iscsi_task) g_ut_read_tasks = TAILQ_HEAD_INITIALIZER(g_ DEFINE_STUB(spdk_app_get_shm_id, int, (void), 0); -DEFINE_STUB(spdk_event_allocate, struct spdk_event *, - (uint32_t lcore, spdk_event_fn fn, void *arg1, void *arg2), - NULL); - -DEFINE_STUB_V(spdk_event_call, (struct spdk_event *event)); - DEFINE_STUB(spdk_sock_getaddr, int, (struct spdk_sock *sock, char *saddr, int slen, uint16_t *sport, char *caddr, int clen, uint16_t *cport),