.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * SBP2 target driver (SCSI over IEEE1394 in target mode) |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
19 | 6 | */ |
---|
20 | 7 | |
---|
21 | 8 | #define KMSG_COMPONENT "sbp_target" |
---|
.. | .. |
---|
1694 | 1681 | return 0; |
---|
1695 | 1682 | } |
---|
1696 | 1683 | |
---|
1697 | | -static char *sbp_get_fabric_name(void) |
---|
1698 | | -{ |
---|
1699 | | - return "sbp"; |
---|
1700 | | -} |
---|
1701 | | - |
---|
1702 | 1684 | static char *sbp_get_fabric_wwn(struct se_portal_group *se_tpg) |
---|
1703 | 1685 | { |
---|
1704 | 1686 | struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); |
---|
.. | .. |
---|
1751 | 1733 | } |
---|
1752 | 1734 | |
---|
1753 | 1735 | target_execute_cmd(se_cmd); |
---|
1754 | | - return 0; |
---|
1755 | | -} |
---|
1756 | | - |
---|
1757 | | -static int sbp_write_pending_status(struct se_cmd *se_cmd) |
---|
1758 | | -{ |
---|
1759 | 1736 | return 0; |
---|
1760 | 1737 | } |
---|
1761 | 1738 | |
---|
.. | .. |
---|
2323 | 2300 | |
---|
2324 | 2301 | static const struct target_core_fabric_ops sbp_ops = { |
---|
2325 | 2302 | .module = THIS_MODULE, |
---|
2326 | | - .name = "sbp", |
---|
2327 | | - .get_fabric_name = sbp_get_fabric_name, |
---|
| 2303 | + .fabric_name = "sbp", |
---|
2328 | 2304 | .tpg_get_wwn = sbp_get_fabric_wwn, |
---|
2329 | 2305 | .tpg_get_tag = sbp_get_tag, |
---|
2330 | 2306 | .tpg_check_demo_mode = sbp_check_true, |
---|
.. | .. |
---|
2335 | 2311 | .release_cmd = sbp_release_cmd, |
---|
2336 | 2312 | .sess_get_index = sbp_sess_get_index, |
---|
2337 | 2313 | .write_pending = sbp_write_pending, |
---|
2338 | | - .write_pending_status = sbp_write_pending_status, |
---|
2339 | 2314 | .set_default_node_attributes = sbp_set_default_node_attrs, |
---|
2340 | 2315 | .get_cmd_state = sbp_get_cmd_state, |
---|
2341 | 2316 | .queue_data_in = sbp_queue_data_in, |
---|