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"
|
#include "bdev/bdev.c"
|
||||||
|
|
||||||
/* Return NULL to test hardcoded defaults. */
|
DEFINE_STUB(spdk_conf_find_section, struct spdk_conf_section *, (struct spdk_conf *cp,
|
||||||
struct spdk_conf_section *
|
const char *name), NULL);
|
||||||
spdk_conf_find_section(struct spdk_conf *cp, const char *name)
|
DEFINE_STUB(spdk_conf_section_get_nmval, char *,
|
||||||
{
|
(struct spdk_conf_section *sp, const char *key, int idx1, int idx2), NULL);
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_bdev_send_msg(spdk_thread_fn fn, void *ctx, void *thread_ctx)
|
_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,
|
DEFINE_STUB_V(spdk_scsi_nvme_translate, (const struct spdk_bdev_io *bdev_io,
|
||||||
int *sc, int *sk, int *asc, int *ascq));
|
int *sc, int *sk, int *asc, int *ascq));
|
||||||
|
|
||||||
/* Return NULL to test hardcoded defaults. */
|
DEFINE_STUB(spdk_conf_find_section, struct spdk_conf_section *, (struct spdk_conf *cp,
|
||||||
struct spdk_conf_section *
|
const char *name), NULL);
|
||||||
spdk_conf_find_section(struct spdk_conf *cp, const char *name)
|
DEFINE_STUB(spdk_conf_section_get_nmval, char *,
|
||||||
{
|
(struct spdk_conf_section *sp, const char *key, int idx1, int idx2), NULL);
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ut_bdev {
|
struct ut_bdev {
|
||||||
struct spdk_bdev bdev;
|
struct spdk_bdev bdev;
|
||||||
|
@ -42,19 +42,10 @@
|
|||||||
#include "bdev/bdev.c"
|
#include "bdev/bdev.c"
|
||||||
#include "bdev/part.c"
|
#include "bdev/part.c"
|
||||||
|
|
||||||
/* Return NULL to test hardcoded defaults. */
|
DEFINE_STUB(spdk_conf_find_section, struct spdk_conf_section *, (struct spdk_conf *cp,
|
||||||
struct spdk_conf_section *
|
const char *name), NULL);
|
||||||
spdk_conf_find_section(struct spdk_conf *cp, const char *name)
|
DEFINE_STUB(spdk_conf_section_get_nmval, char *,
|
||||||
{
|
(struct spdk_conf_section *sp, const char *key, int idx1, int idx2), NULL);
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_part_send_msg(spdk_thread_fn fn, void *ctx, void *thread_ctx)
|
_part_send_msg(spdk_thread_fn fn, void *ctx, void *thread_ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user