test/bdev: use DEFINE_STUB for spdk_conf_* stubs
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I2165bdb1c2dc08d790aa6dc63a8367c7a1a3bc4d Reviewed-on: https://review.gerrithub.io/414711 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
503cddac70
commit
34de1542eb
@ -41,19 +41,10 @@
|
||||
|
||||
#include "bdev/bdev.c"
|
||||
|
||||
/* Return NULL to test hardcoded defaults. */
|
||||
struct spdk_conf_section *
|
||||
spdk_conf_find_section(struct spdk_conf *cp, const char *name)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Return NULL to test hardcoded defaults. */
|
||||
char *
|
||||
spdk_conf_section_get_nmval(struct spdk_conf_section *sp, const char *key, int idx1, int idx2)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
DEFINE_STUB(spdk_conf_find_section, struct spdk_conf_section *, (struct spdk_conf *cp,
|
||||
const char *name), NULL);
|
||||
DEFINE_STUB(spdk_conf_section_get_nmval, char *,
|
||||
(struct spdk_conf_section *sp, const char *key, int idx1, int idx2), NULL);
|
||||
|
||||
static void
|
||||
_bdev_send_msg(spdk_thread_fn fn, void *ctx, void *thread_ctx)
|
||||
|
@ -47,19 +47,10 @@
|
||||
DEFINE_STUB_V(spdk_scsi_nvme_translate, (const struct spdk_bdev_io *bdev_io,
|
||||
int *sc, int *sk, int *asc, int *ascq));
|
||||
|
||||
/* Return NULL to test hardcoded defaults. */
|
||||
struct spdk_conf_section *
|
||||
spdk_conf_find_section(struct spdk_conf *cp, const char *name)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Return NULL to test hardcoded defaults. */
|
||||
char *
|
||||
spdk_conf_section_get_nmval(struct spdk_conf_section *sp, const char *key, int idx1, int idx2)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
DEFINE_STUB(spdk_conf_find_section, struct spdk_conf_section *, (struct spdk_conf *cp,
|
||||
const char *name), NULL);
|
||||
DEFINE_STUB(spdk_conf_section_get_nmval, char *,
|
||||
(struct spdk_conf_section *sp, const char *key, int idx1, int idx2), NULL);
|
||||
|
||||
struct ut_bdev {
|
||||
struct spdk_bdev bdev;
|
||||
|
@ -42,19 +42,10 @@
|
||||
#include "bdev/bdev.c"
|
||||
#include "bdev/part.c"
|
||||
|
||||
/* Return NULL to test hardcoded defaults. */
|
||||
struct spdk_conf_section *
|
||||
spdk_conf_find_section(struct spdk_conf *cp, const char *name)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Return NULL to test hardcoded defaults. */
|
||||
char *
|
||||
spdk_conf_section_get_nmval(struct spdk_conf_section *sp, const char *key, int idx1, int idx2)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
DEFINE_STUB(spdk_conf_find_section, struct spdk_conf_section *, (struct spdk_conf *cp,
|
||||
const char *name), NULL);
|
||||
DEFINE_STUB(spdk_conf_section_get_nmval, char *,
|
||||
(struct spdk_conf_section *sp, const char *key, int idx1, int idx2), NULL);
|
||||
|
||||
static void
|
||||
_part_send_msg(spdk_thread_fn fn, void *ctx, void *thread_ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user