diff --git a/test/unit/lib/bdev/vbdev_lvol.c/vbdev_lvol_ut.c b/test/unit/lib/bdev/vbdev_lvol.c/vbdev_lvol_ut.c index 2ee82b4791..d6a85b44f6 100644 --- a/test/unit/lib/bdev/vbdev_lvol.c/vbdev_lvol_ut.c +++ b/test/unit/lib/bdev/vbdev_lvol.c/vbdev_lvol_ut.c @@ -36,6 +36,8 @@ #include "bdev/lvol/vbdev_lvol.c" +#include "unit/lib/json_mock.c" + #define SPDK_BS_PAGE_SIZE 0x1000 int g_lvolerrno; @@ -541,48 +543,6 @@ spdk_bdev_module_list_add(struct spdk_bdev_module *bdev_module) { } -int -spdk_json_write_name(struct spdk_json_write_ctx *w, const char *name) -{ - return 0; -} - -int -spdk_json_write_array_begin(struct spdk_json_write_ctx *w) -{ - return 0; -} - -int -spdk_json_write_array_end(struct spdk_json_write_ctx *w) -{ - return 0; -} - -int -spdk_json_write_string(struct spdk_json_write_ctx *w, const char *val) -{ - return 0; -} - -int -spdk_json_write_bool(struct spdk_json_write_ctx *w, bool val) -{ - return 0; -} - -int -spdk_json_write_object_begin(struct spdk_json_write_ctx *w) -{ - return 0; -} - -int -spdk_json_write_object_end(struct spdk_json_write_ctx *w) -{ - return 0; -} - const char * spdk_bdev_get_name(const struct spdk_bdev *bdev) {