diff options
author | Robert Love <robert.w.love@intel.com> | 2009-04-21 19:27:41 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-27 11:19:31 -0400 |
commit | a29e7646f42a325a7f6cce34adbeb52e8db15566 (patch) | |
tree | f45244f4f3394815a8991e5a05695f427033f40c /drivers/scsi/libfc | |
parent | dd3fd72e692c8af007f70df4433c0cffe8582d8b (diff) |
[SCSI] libfc: Fix compilation warnings with allmodconfig
When building with a .config generated from 'make allmodconfig'
some build warnings are generated. This patch corrects the warnings,
adds a FC_FID_NONE (= 0) enumeration for FC-IDs and cleans up one
variable naming to meet our variable naming conventions. For example,
fc_lport's should be named "lport," not "lp."
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/libfc')
-rw-r--r-- | drivers/scsi/libfc/fc_elsct.c | 2 | ||||
-rw-r--r-- | drivers/scsi/libfc/fc_fcp.c | 7 | ||||
-rw-r--r-- | drivers/scsi/libfc/fc_rport.c | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/drivers/scsi/libfc/fc_elsct.c b/drivers/scsi/libfc/fc_elsct.c index dd47fe619d1e..5878b34bff18 100644 --- a/drivers/scsi/libfc/fc_elsct.c +++ b/drivers/scsi/libfc/fc_elsct.c | |||
@@ -41,7 +41,7 @@ static struct fc_seq *fc_elsct_send(struct fc_lport *lport, | |||
41 | void *arg, u32 timer_msec) | 41 | void *arg, u32 timer_msec) |
42 | { | 42 | { |
43 | enum fc_rctl r_ctl; | 43 | enum fc_rctl r_ctl; |
44 | u32 did; | 44 | u32 did = FC_FID_NONE; |
45 | enum fc_fh_type fh_type; | 45 | enum fc_fh_type fh_type; |
46 | int rc; | 46 | int rc; |
47 | 47 | ||
diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c index f555ae99ad40..521f996f9b13 100644 --- a/drivers/scsi/libfc/fc_fcp.c +++ b/drivers/scsi/libfc/fc_fcp.c | |||
@@ -713,7 +713,7 @@ done: | |||
713 | static void fc_fcp_recv(struct fc_seq *seq, struct fc_frame *fp, void *arg) | 713 | static void fc_fcp_recv(struct fc_seq *seq, struct fc_frame *fp, void *arg) |
714 | { | 714 | { |
715 | struct fc_fcp_pkt *fsp = (struct fc_fcp_pkt *)arg; | 715 | struct fc_fcp_pkt *fsp = (struct fc_fcp_pkt *)arg; |
716 | struct fc_lport *lp; | 716 | struct fc_lport *lport = fsp->lp; |
717 | struct fc_frame_header *fh; | 717 | struct fc_frame_header *fh; |
718 | struct fcp_txrdy *dd; | 718 | struct fcp_txrdy *dd; |
719 | u8 r_ctl; | 719 | u8 r_ctl; |
@@ -724,9 +724,8 @@ static void fc_fcp_recv(struct fc_seq *seq, struct fc_frame *fp, void *arg) | |||
724 | 724 | ||
725 | fh = fc_frame_header_get(fp); | 725 | fh = fc_frame_header_get(fp); |
726 | r_ctl = fh->fh_r_ctl; | 726 | r_ctl = fh->fh_r_ctl; |
727 | lp = fsp->lp; | ||
728 | 727 | ||
729 | if (!(lp->state & LPORT_ST_READY)) | 728 | if (!(lport->state & LPORT_ST_READY)) |
730 | goto out; | 729 | goto out; |
731 | if (fc_fcp_lock_pkt(fsp)) | 730 | if (fc_fcp_lock_pkt(fsp)) |
732 | goto out; | 731 | goto out; |
@@ -779,7 +778,7 @@ errout: | |||
779 | if (IS_ERR(fp)) | 778 | if (IS_ERR(fp)) |
780 | fc_fcp_error(fsp, fp); | 779 | fc_fcp_error(fsp, fp); |
781 | else if (rc == -ENOMEM) | 780 | else if (rc == -ENOMEM) |
782 | fc_fcp_reduce_can_queue(lp); | 781 | fc_fcp_reduce_can_queue(lport); |
783 | } | 782 | } |
784 | 783 | ||
785 | static void fc_fcp_resp(struct fc_fcp_pkt *fsp, struct fc_frame *fp) | 784 | static void fc_fcp_resp(struct fc_fcp_pkt *fsp, struct fc_frame *fp) |
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index e675f5ac30cc..747d73c5c8af 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c | |||
@@ -509,7 +509,7 @@ static void fc_rport_plogi_resp(struct fc_seq *sp, struct fc_frame *fp, | |||
509 | struct fc_rport *rport = rp_arg; | 509 | struct fc_rport *rport = rp_arg; |
510 | struct fc_rport_libfc_priv *rdata = rport->dd_data; | 510 | struct fc_rport_libfc_priv *rdata = rport->dd_data; |
511 | struct fc_lport *lport = rdata->local_port; | 511 | struct fc_lport *lport = rdata->local_port; |
512 | struct fc_els_flogi *plp; | 512 | struct fc_els_flogi *plp = NULL; |
513 | unsigned int tov; | 513 | unsigned int tov; |
514 | u16 csp_seq; | 514 | u16 csp_seq; |
515 | u16 cssp_seq; | 515 | u16 cssp_seq; |