hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/target/tcm_fc/tfc_conf.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*******************************************************************************
23 * Filename: tcm_fc.c
34 *
....@@ -10,15 +11,6 @@
1011 *
1112 * Copyright (c) 2009,2010 Nicholas A. Bellinger <nab@linux-iscsi.org>
1213 *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License as published by
15
- * the Free Software Foundation; either version 2 of the License, or
16
- * (at your option) any later version.
17
- *
18
- * This program is distributed in the hope that it will be useful,
19
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- * GNU General Public License for more details.
2214 ****************************************************************************/
2315
2416 #include <linux/module.h>
....@@ -392,11 +384,6 @@
392384 return container_of(se_tpg, struct ft_tpg, se_tpg);
393385 }
394386
395
-static char *ft_get_fabric_name(void)
396
-{
397
- return "fc";
398
-}
399
-
400387 static char *ft_get_fabric_wwn(struct se_portal_group *se_tpg)
401388 {
402389 return ft_tpg(se_tpg)->lport_wwn->name;
....@@ -427,9 +414,8 @@
427414
428415 static const struct target_core_fabric_ops ft_fabric_ops = {
429416 .module = THIS_MODULE,
430
- .name = "fc",
417
+ .fabric_name = "fc",
431418 .node_acl_size = sizeof(struct ft_node_acl),
432
- .get_fabric_name = ft_get_fabric_name,
433419 .tpg_get_wwn = ft_get_fabric_wwn,
434420 .tpg_get_tag = ft_get_tag,
435421 .tpg_check_demo_mode = ft_check_false,
....@@ -443,7 +429,6 @@
443429 .sess_get_index = ft_sess_get_index,
444430 .sess_get_initiator_sid = NULL,
445431 .write_pending = ft_write_pending,
446
- .write_pending_status = ft_write_pending_status,
447432 .set_default_node_attributes = ft_set_default_node_attr,
448433 .get_cmd_state = ft_get_cmd_state,
449434 .queue_data_in = ft_queue_data_in,