diff options
Diffstat (limited to 'drivers/target/tcm_fc')
-rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 1 | ||||
-rw-r--r-- | drivers/target/tcm_fc/tfc_conf.c | 12 | ||||
-rw-r--r-- | drivers/target/tcm_fc/tfc_io.c | 4 | ||||
-rw-r--r-- | drivers/target/tcm_fc/tfc_sess.c | 1 |
4 files changed, 2 insertions, 16 deletions
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c index 823e6922249d..b406f178ff39 100644 --- a/drivers/target/tcm_fc/tfc_cmd.c +++ b/drivers/target/tcm_fc/tfc_cmd.c | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <linux/moduleparam.h> | 21 | #include <linux/moduleparam.h> |
22 | #include <generated/utsrelease.h> | ||
23 | #include <linux/utsname.h> | 22 | #include <linux/utsname.h> |
24 | #include <linux/init.h> | 23 | #include <linux/init.h> |
25 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
diff --git a/drivers/target/tcm_fc/tfc_conf.c b/drivers/target/tcm_fc/tfc_conf.c index 9501844fae2d..b74feb0d5133 100644 --- a/drivers/target/tcm_fc/tfc_conf.c +++ b/drivers/target/tcm_fc/tfc_conf.c | |||
@@ -495,16 +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) | ||
504 | { | ||
505 | return 0; | ||
506 | } | ||
507 | |||
508 | static u32 ft_tpg_get_inst_index(struct se_portal_group *se_tpg) | 498 | static u32 ft_tpg_get_inst_index(struct se_portal_group *se_tpg) |
509 | { | 499 | { |
510 | struct ft_tpg *tpg = se_tpg->se_tpg_fabric_ptr; | 500 | struct ft_tpg *tpg = se_tpg->se_tpg_fabric_ptr; |
@@ -542,8 +532,6 @@ static struct target_core_fabric_ops ft_fabric_ops = { | |||
542 | .queue_data_in = ft_queue_data_in, | 532 | .queue_data_in = ft_queue_data_in, |
543 | .queue_status = ft_queue_status, | 533 | .queue_status = ft_queue_status, |
544 | .queue_tm_rsp = ft_queue_tm_resp, | 534 | .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, | ||
547 | /* | 535 | /* |
548 | * Setup function pointers for generic logic in | 536 | * Setup function pointers for generic logic in |
549 | * target_core_fabric_configfs.c | 537 | * target_core_fabric_configfs.c |
diff --git a/drivers/target/tcm_fc/tfc_io.c b/drivers/target/tcm_fc/tfc_io.c index ad36ede1a1ea..b6fd4cf42840 100644 --- a/drivers/target/tcm_fc/tfc_io.c +++ b/drivers/target/tcm_fc/tfc_io.c | |||
@@ -28,7 +28,6 @@ | |||
28 | 28 | ||
29 | #include <linux/module.h> | 29 | #include <linux/module.h> |
30 | #include <linux/moduleparam.h> | 30 | #include <linux/moduleparam.h> |
31 | #include <generated/utsrelease.h> | ||
32 | #include <linux/utsname.h> | 31 | #include <linux/utsname.h> |
33 | #include <linux/init.h> | 32 | #include <linux/init.h> |
34 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
@@ -328,11 +327,12 @@ drop: | |||
328 | */ | 327 | */ |
329 | void ft_invl_hw_context(struct ft_cmd *cmd) | 328 | void ft_invl_hw_context(struct ft_cmd *cmd) |
330 | { | 329 | { |
331 | struct fc_seq *seq = cmd->seq; | 330 | struct fc_seq *seq; |
332 | struct fc_exch *ep = NULL; | 331 | struct fc_exch *ep = NULL; |
333 | struct fc_lport *lport = NULL; | 332 | struct fc_lport *lport = NULL; |
334 | 333 | ||
335 | BUG_ON(!cmd); | 334 | BUG_ON(!cmd); |
335 | seq = cmd->seq; | ||
336 | 336 | ||
337 | /* Cleanup the DDP context in HW if DDP was setup */ | 337 | /* Cleanup the DDP context in HW if DDP was setup */ |
338 | if (cmd->was_ddp_setup && seq) { | 338 | if (cmd->was_ddp_setup && seq) { |
diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index 3c9e5b57caab..9585010964ec 100644 --- a/drivers/target/tcm_fc/tfc_sess.c +++ b/drivers/target/tcm_fc/tfc_sess.c | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <linux/moduleparam.h> | 21 | #include <linux/moduleparam.h> |
22 | #include <generated/utsrelease.h> | ||
23 | #include <linux/utsname.h> | 22 | #include <linux/utsname.h> |
24 | #include <linux/init.h> | 23 | #include <linux/init.h> |
25 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |