You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
target: Drop unused legacy target_core_fabric_ops API callers
This patch drops the following unused legacy API callers from target_core_fabric.h: *) TFO->fall_back_to_erl0() *) TFO->stop_session() *) TFO->sess_logged_in() *) TFO->is_state_remove() This patch also removes the stub usage in loopback, tcm_fc, iscsi_target, and ib_srpt fabric modules. Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
@@ -421,18 +421,6 @@ static int target_fabric_tf_ops_check(
|
||||
pr_err("Missing tfo->close_session()\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (!tfo->stop_session) {
|
||||
pr_err("Missing tfo->stop_session()\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (!tfo->fall_back_to_erl0) {
|
||||
pr_err("Missing tfo->fall_back_to_erl0()\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (!tfo->sess_logged_in) {
|
||||
pr_err("Missing tfo->sess_logged_in()\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (!tfo->sess_get_index) {
|
||||
pr_err("Missing tfo->sess_get_index()\n");
|
||||
return -EINVAL;
|
||||
@@ -477,10 +465,6 @@ static int target_fabric_tf_ops_check(
|
||||
pr_err("Missing tfo->get_fabric_sense_len()\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (!tfo->is_state_remove) {
|
||||
pr_err("Missing tfo->is_state_remove()\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
/*
|
||||
* We at least require tfo->fabric_make_wwn(), tfo->fabric_drop_wwn()
|
||||
* tfo->fabric_make_tpg() and tfo->fabric_drop_tpg() in
|
||||
|
||||
Reference in New Issue
Block a user