nvmf: add const to trid within listener allowed
Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Change-Id: I31b10c860e8a40745e001a0898e081152afac7e9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/914 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
c79d4eef85
commit
6913a864fb
@ -602,7 +602,7 @@ int spdk_nvmf_subsystem_remove_listener(struct spdk_nvmf_subsystem *subsystem,
|
||||
* \return true if allowed, or false if not.
|
||||
*/
|
||||
bool spdk_nvmf_subsystem_listener_allowed(struct spdk_nvmf_subsystem *subsystem,
|
||||
struct spdk_nvme_transport_id *trid);
|
||||
const struct spdk_nvme_transport_id *trid);
|
||||
|
||||
/**
|
||||
* Get the first allowed listen address in the subsystem.
|
||||
|
@ -818,7 +818,7 @@ spdk_nvmf_subsystem_remove_all_listeners(struct spdk_nvmf_subsystem *subsystem,
|
||||
|
||||
bool
|
||||
spdk_nvmf_subsystem_listener_allowed(struct spdk_nvmf_subsystem *subsystem,
|
||||
struct spdk_nvme_transport_id *trid)
|
||||
const struct spdk_nvme_transport_id *trid)
|
||||
{
|
||||
struct spdk_nvmf_subsystem_listener *listener;
|
||||
|
||||
|
@ -116,7 +116,7 @@ DEFINE_STUB(spdk_nvmf_qpair_get_listen_trid,
|
||||
|
||||
DEFINE_STUB(spdk_nvmf_subsystem_listener_allowed,
|
||||
bool,
|
||||
(struct spdk_nvmf_subsystem *subsystem, struct spdk_nvme_transport_id *trid),
|
||||
(struct spdk_nvmf_subsystem *subsystem, const struct spdk_nvme_transport_id *trid),
|
||||
true);
|
||||
|
||||
DEFINE_STUB(spdk_nvmf_bdev_ctrlr_read_cmd,
|
||||
|
@ -81,7 +81,7 @@ DEFINE_STUB(spdk_nvmf_tgt_find_subsystem,
|
||||
|
||||
DEFINE_STUB(spdk_nvmf_subsystem_listener_allowed,
|
||||
bool,
|
||||
(struct spdk_nvmf_subsystem *subsystem, struct spdk_nvme_transport_id *trid),
|
||||
(struct spdk_nvmf_subsystem *subsystem, const struct spdk_nvme_transport_id *trid),
|
||||
true);
|
||||
|
||||
DEFINE_STUB_V(spdk_nvmf_get_discovery_log_page,
|
||||
|
Loading…
Reference in New Issue
Block a user