Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: target: fcoe: Remove default fabric ops callouts

Remove callouts that are identical to the default implementations in TCM
Core.

Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com>
Link: https://lore.kernel.org/r/20230313181110.20566-7-d.bogdanov@yadro.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Dmitry Bogdanov and committed by
Martin K. Petersen
51550985 c9593f48

-21
-1
drivers/target/tcm_fc/tcm_fc.h
··· 146 146 int ft_queue_status(struct se_cmd *); 147 147 int ft_queue_data_in(struct se_cmd *); 148 148 int ft_write_pending(struct se_cmd *); 149 - int ft_get_cmd_state(struct se_cmd *); 150 149 void ft_queue_tm_resp(struct se_cmd *); 151 150 void ft_aborted_task(struct se_cmd *); 152 151
-5
drivers/target/tcm_fc/tfc_cmd.c
··· 223 223 return 0; 224 224 } 225 225 226 - int ft_get_cmd_state(struct se_cmd *se_cmd) 227 - { 228 - return 0; 229 - } 230 - 231 226 /* 232 227 * FC sequence response handler for follow-on sequences (data) and aborts. 233 228 */
-15
drivers/target/tcm_fc/tfc_conf.c
··· 398 398 return ft_tpg(se_tpg)->index; 399 399 } 400 400 401 - static int ft_check_false(struct se_portal_group *se_tpg) 402 - { 403 - return 0; 404 - } 405 - 406 - static void ft_set_default_node_attr(struct se_node_acl *se_nacl) 407 - { 408 - } 409 - 410 401 static u32 ft_tpg_get_inst_index(struct se_portal_group *se_tpg) 411 402 { 412 403 return ft_tpg(se_tpg)->index; ··· 409 418 .node_acl_size = sizeof(struct ft_node_acl), 410 419 .tpg_get_wwn = ft_get_fabric_wwn, 411 420 .tpg_get_tag = ft_get_tag, 412 - .tpg_check_demo_mode = ft_check_false, 413 - .tpg_check_demo_mode_cache = ft_check_false, 414 - .tpg_check_demo_mode_write_protect = ft_check_false, 415 - .tpg_check_prod_mode_write_protect = ft_check_false, 416 421 .tpg_get_inst_index = ft_tpg_get_inst_index, 417 422 .check_stop_free = ft_check_stop_free, 418 423 .release_cmd = ft_release_cmd, ··· 416 429 .sess_get_index = ft_sess_get_index, 417 430 .sess_get_initiator_sid = NULL, 418 431 .write_pending = ft_write_pending, 419 - .set_default_node_attributes = ft_set_default_node_attr, 420 - .get_cmd_state = ft_get_cmd_state, 421 432 .queue_data_in = ft_queue_data_in, 422 433 .queue_status = ft_queue_status, 423 434 .queue_tm_rsp = ft_queue_tm_resp,