forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/target/sbp/sbp_target.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SBP2 target driver (SCSI over IEEE1394 in target mode)
34 *
45 * Copyright (C) 2011 Chris Boot <bootc@bootc.net>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software Foundation,
18
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
196 */
207
218 #define KMSG_COMPONENT "sbp_target"
....@@ -1694,11 +1681,6 @@
16941681 return 0;
16951682 }
16961683
1697
-static char *sbp_get_fabric_name(void)
1698
-{
1699
- return "sbp";
1700
-}
1701
-
17021684 static char *sbp_get_fabric_wwn(struct se_portal_group *se_tpg)
17031685 {
17041686 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg);
....@@ -1751,11 +1733,6 @@
17511733 }
17521734
17531735 target_execute_cmd(se_cmd);
1754
- return 0;
1755
-}
1756
-
1757
-static int sbp_write_pending_status(struct se_cmd *se_cmd)
1758
-{
17591736 return 0;
17601737 }
17611738
....@@ -2323,8 +2300,7 @@
23232300
23242301 static const struct target_core_fabric_ops sbp_ops = {
23252302 .module = THIS_MODULE,
2326
- .name = "sbp",
2327
- .get_fabric_name = sbp_get_fabric_name,
2303
+ .fabric_name = "sbp",
23282304 .tpg_get_wwn = sbp_get_fabric_wwn,
23292305 .tpg_get_tag = sbp_get_tag,
23302306 .tpg_check_demo_mode = sbp_check_true,
....@@ -2335,7 +2311,6 @@
23352311 .release_cmd = sbp_release_cmd,
23362312 .sess_get_index = sbp_sess_get_index,
23372313 .write_pending = sbp_write_pending,
2338
- .write_pending_status = sbp_write_pending_status,
23392314 .set_default_node_attributes = sbp_set_default_node_attrs,
23402315 .get_cmd_state = sbp_get_cmd_state,
23412316 .queue_data_in = sbp_queue_data_in,