lib/nvmf: remove spdk prefix from static functions in transport.c.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Change-Id: I601d59c5e182aa4a713eb798b3e73fe97106866a
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2316
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Seth Howell 2020-05-09 22:53:39 -07:00 committed by Jim Harris
parent 4de405ab6e
commit 6dec2087e9
2 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ TAILQ_HEAD(nvmf_transport_ops_list, nvmf_transport_ops_list_element)
g_spdk_nvmf_transport_ops = TAILQ_HEAD_INITIALIZER(g_spdk_nvmf_transport_ops);
static inline const struct spdk_nvmf_transport_ops *
spdk_nvmf_get_transport_ops(const char *transport_name)
nvmf_get_transport_ops(const char *transport_name)
{
struct nvmf_transport_ops_list_element *ops;
TAILQ_FOREACH(ops, &g_spdk_nvmf_transport_ops, link) {
@ -70,7 +70,7 @@ spdk_nvmf_transport_register(const struct spdk_nvmf_transport_ops *ops)
{
struct nvmf_transport_ops_list_element *new_ops;
if (spdk_nvmf_get_transport_ops(ops->name) != NULL) {
if (nvmf_get_transport_ops(ops->name) != NULL) {
SPDK_ERRLOG("Double registering nvmf transport type %s.\n", ops->name);
assert(false);
return;
@ -114,7 +114,7 @@ spdk_nvmf_transport_create(const char *transport_name, struct spdk_nvmf_transpor
char spdk_mempool_name[MAX_MEMPOOL_NAME_LENGTH];
int chars_written;
ops = spdk_nvmf_get_transport_ops(transport_name);
ops = nvmf_get_transport_ops(transport_name);
if (!ops) {
SPDK_ERRLOG("Transport type '%s' unavailable.\n", transport_name);
return NULL;
@ -407,7 +407,7 @@ spdk_nvmf_transport_opts_init(const char *transport_name,
{
const struct spdk_nvmf_transport_ops *ops;
ops = spdk_nvmf_get_transport_ops(transport_name);
ops = nvmf_get_transport_ops(transport_name);
if (!ops) {
SPDK_ERRLOG("Transport type %s unavailable.\n", transport_name);
return false;

View File

@ -281,7 +281,7 @@ create_transport_test(void)
g_nvmf_tgt = spdk_nvmf_tgt_create(&tgt_opts);
SPDK_CU_ASSERT_FATAL(g_nvmf_tgt != NULL);
ops = spdk_nvmf_get_transport_ops(SPDK_NVME_TRANSPORT_NAME_FC);
ops = nvmf_get_transport_ops(SPDK_NVME_TRANSPORT_NAME_FC);
SPDK_CU_ASSERT_FATAL(ops != NULL);
ops->opts_init(&opts);