diff options
author | Roland Dreier <roland@purestorage.com> | 2012-08-15 17:35:24 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-09-17 19:15:47 -0400 |
commit | 2ed772b7b9df0f459308b3cbececc0136076d09e (patch) | |
tree | 4f97f1cbdb889b921d48799c085e5142e5aa001b /drivers/target | |
parent | 343d475d6176fa081918fcbf3fcb0b0143e28661 (diff) |
target: Remove unused target_core_fabric_ops.get_fabric_sense_len method
There are no callers of se_tfo->get_fabric_sense_len(), so we should
stop having every fabric driver implement it.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_configfs.c | 9 | ||||
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 6 | ||||
-rw-r--r-- | drivers/target/sbp/sbp_target.c | 6 | ||||
-rw-r--r-- | drivers/target/target_core_configfs.c | 4 | ||||
-rw-r--r-- | drivers/target/tcm_fc/tfc_conf.c | 6 |
5 files changed, 0 insertions, 31 deletions
diff --git a/drivers/target/iscsi/iscsi_target_configfs.c b/drivers/target/iscsi/iscsi_target_configfs.c index a7b25e783b58..518fd4e86409 100644 --- a/drivers/target/iscsi/iscsi_target_configfs.c +++ b/drivers/target/iscsi/iscsi_target_configfs.c | |||
@@ -1557,14 +1557,6 @@ static u16 lio_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_length) | |||
1557 | return 2; | 1557 | return 2; |
1558 | } | 1558 | } |
1559 | 1559 | ||
1560 | static u16 lio_get_fabric_sense_len(void) | ||
1561 | { | ||
1562 | /* | ||
1563 | * Return two byte offset into allocated sense_buffer. | ||
1564 | */ | ||
1565 | return 2; | ||
1566 | } | ||
1567 | |||
1568 | static int lio_queue_tm_rsp(struct se_cmd *se_cmd) | 1560 | static int lio_queue_tm_rsp(struct se_cmd *se_cmd) |
1569 | { | 1561 | { |
1570 | struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); | 1562 | struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); |
@@ -1749,7 +1741,6 @@ int iscsi_target_register_configfs(void) | |||
1749 | fabric->tf_ops.queue_status = &lio_queue_status; | 1741 | fabric->tf_ops.queue_status = &lio_queue_status; |
1750 | fabric->tf_ops.queue_tm_rsp = &lio_queue_tm_rsp; | 1742 | fabric->tf_ops.queue_tm_rsp = &lio_queue_tm_rsp; |
1751 | fabric->tf_ops.set_fabric_sense_len = &lio_set_fabric_sense_len; | 1743 | fabric->tf_ops.set_fabric_sense_len = &lio_set_fabric_sense_len; |
1752 | fabric->tf_ops.get_fabric_sense_len = &lio_get_fabric_sense_len; | ||
1753 | /* | 1744 | /* |
1754 | * Setup function pointers for generic logic in target_core_fabric_configfs.c | 1745 | * Setup function pointers for generic logic in target_core_fabric_configfs.c |
1755 | */ | 1746 | */ |
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 5491c632a15e..4ab1d0b43a85 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -851,11 +851,6 @@ static u16 tcm_loop_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_length | |||
851 | return 0; | 851 | return 0; |
852 | } | 852 | } |
853 | 853 | ||
854 | static u16 tcm_loop_get_fabric_sense_len(void) | ||
855 | { | ||
856 | return 0; | ||
857 | } | ||
858 | |||
859 | static char *tcm_loop_dump_proto_id(struct tcm_loop_hba *tl_hba) | 854 | static char *tcm_loop_dump_proto_id(struct tcm_loop_hba *tl_hba) |
860 | { | 855 | { |
861 | switch (tl_hba->tl_proto_id) { | 856 | switch (tl_hba->tl_proto_id) { |
@@ -1374,7 +1369,6 @@ static int tcm_loop_register_configfs(void) | |||
1374 | fabric->tf_ops.queue_status = &tcm_loop_queue_status; | 1369 | fabric->tf_ops.queue_status = &tcm_loop_queue_status; |
1375 | fabric->tf_ops.queue_tm_rsp = &tcm_loop_queue_tm_rsp; | 1370 | fabric->tf_ops.queue_tm_rsp = &tcm_loop_queue_tm_rsp; |
1376 | fabric->tf_ops.set_fabric_sense_len = &tcm_loop_set_fabric_sense_len; | 1371 | fabric->tf_ops.set_fabric_sense_len = &tcm_loop_set_fabric_sense_len; |
1377 | fabric->tf_ops.get_fabric_sense_len = &tcm_loop_get_fabric_sense_len; | ||
1378 | 1372 | ||
1379 | /* | 1373 | /* |
1380 | * Setup function pointers for generic logic in target_core_fabric_configfs.c | 1374 | * Setup function pointers for generic logic in target_core_fabric_configfs.c |
diff --git a/drivers/target/sbp/sbp_target.c b/drivers/target/sbp/sbp_target.c index 713b88203799..cb40a40326cd 100644 --- a/drivers/target/sbp/sbp_target.c +++ b/drivers/target/sbp/sbp_target.c | |||
@@ -1852,11 +1852,6 @@ static u16 sbp_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_length) | |||
1852 | return 0; | 1852 | return 0; |
1853 | } | 1853 | } |
1854 | 1854 | ||
1855 | static u16 sbp_get_fabric_sense_len(void) | ||
1856 | { | ||
1857 | return 0; | ||
1858 | } | ||
1859 | |||
1860 | static int sbp_check_stop_free(struct se_cmd *se_cmd) | 1855 | static int sbp_check_stop_free(struct se_cmd *se_cmd) |
1861 | { | 1856 | { |
1862 | struct sbp_target_request *req = container_of(se_cmd, | 1857 | struct sbp_target_request *req = container_of(se_cmd, |
@@ -2534,7 +2529,6 @@ static struct target_core_fabric_ops sbp_ops = { | |||
2534 | .queue_data_in = sbp_queue_data_in, | 2529 | .queue_data_in = sbp_queue_data_in, |
2535 | .queue_status = sbp_queue_status, | 2530 | .queue_status = sbp_queue_status, |
2536 | .queue_tm_rsp = sbp_queue_tm_rsp, | 2531 | .queue_tm_rsp = sbp_queue_tm_rsp, |
2537 | .get_fabric_sense_len = sbp_get_fabric_sense_len, | ||
2538 | .set_fabric_sense_len = sbp_set_fabric_sense_len, | 2532 | .set_fabric_sense_len = sbp_set_fabric_sense_len, |
2539 | .check_stop_free = sbp_check_stop_free, | 2533 | .check_stop_free = sbp_check_stop_free, |
2540 | 2534 | ||
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 801efa892046..946d8e952b67 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c | |||
@@ -461,10 +461,6 @@ static int target_fabric_tf_ops_check( | |||
461 | pr_err("Missing tfo->set_fabric_sense_len()\n"); | 461 | pr_err("Missing tfo->set_fabric_sense_len()\n"); |
462 | return -EINVAL; | 462 | return -EINVAL; |
463 | } | 463 | } |
464 | if (!tfo->get_fabric_sense_len) { | ||
465 | pr_err("Missing tfo->get_fabric_sense_len()\n"); | ||
466 | return -EINVAL; | ||
467 | } | ||
468 | /* | 464 | /* |
469 | * We at least require tfo->fabric_make_wwn(), tfo->fabric_drop_wwn() | 465 | * We at least require tfo->fabric_make_wwn(), tfo->fabric_drop_wwn() |
470 | * tfo->fabric_make_tpg() and tfo->fabric_drop_tpg() in | 466 | * tfo->fabric_make_tpg() and tfo->fabric_drop_tpg() in |
diff --git a/drivers/target/tcm_fc/tfc_conf.c b/drivers/target/tcm_fc/tfc_conf.c index 9501844fae2d..4f97701350a8 100644 --- a/drivers/target/tcm_fc/tfc_conf.c +++ b/drivers/target/tcm_fc/tfc_conf.c | |||
@@ -495,11 +495,6 @@ static void ft_set_default_node_attr(struct se_node_acl *se_nacl) | |||
495 | { | 495 | { |
496 | } | 496 | } |
497 | 497 | ||
498 | static u16 ft_get_fabric_sense_len(void) | ||
499 | { | ||
500 | return 0; | ||
501 | } | ||
502 | |||
503 | static u16 ft_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_len) | 498 | static u16 ft_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_len) |
504 | { | 499 | { |
505 | return 0; | 500 | return 0; |
@@ -542,7 +537,6 @@ static struct target_core_fabric_ops ft_fabric_ops = { | |||
542 | .queue_data_in = ft_queue_data_in, | 537 | .queue_data_in = ft_queue_data_in, |
543 | .queue_status = ft_queue_status, | 538 | .queue_status = ft_queue_status, |
544 | .queue_tm_rsp = ft_queue_tm_resp, | 539 | .queue_tm_rsp = ft_queue_tm_resp, |
545 | .get_fabric_sense_len = ft_get_fabric_sense_len, | ||
546 | .set_fabric_sense_len = ft_set_fabric_sense_len, | 540 | .set_fabric_sense_len = ft_set_fabric_sense_len, |
547 | /* | 541 | /* |
548 | * Setup function pointers for generic logic in | 542 | * Setup function pointers for generic logic in |