aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_hbadisc.c
diff options
context:
space:
mode:
authorJames Smart <James.Smart@Emulex.Com>2007-08-02 11:10:37 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-08-01 13:25:39 -0400
commit311464ec0bfea96e7f09f4afca26283f5fa90c24 (patch)
tree1d4022a3b7031dbaa2115cb9d9dfcd3efa0707d0 /drivers/scsi/lpfc/lpfc_hbadisc.c
parent51ef4c26891a734bc8416b639ad460a8162926bc (diff)
[SCSI] lpfc 8.2.2 : Style cleanups
- Clean up all instances of mixed tab-space indentation - Clean up sparse build errors - Add appropriate static's Signed-off-by: James Smart <James.Smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_hbadisc.c32
1 files changed, 3 insertions, 29 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 8788f14b1dec..c81c2b3228d6 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -349,7 +349,7 @@ lpfc_work_list_done(struct lpfc_hba *phba)
349 349
350} 350}
351 351
352void 352static void
353lpfc_work_done(struct lpfc_hba *phba) 353lpfc_work_done(struct lpfc_hba *phba)
354{ 354{
355 struct lpfc_sli_ring *pring; 355 struct lpfc_sli_ring *pring;
@@ -1591,7 +1591,7 @@ lpfc_nlp_state_name(char *buffer, size_t size, int state)
1591 [NLP_STE_NPR_NODE] = "NPR", 1591 [NLP_STE_NPR_NODE] = "NPR",
1592 }; 1592 };
1593 1593
1594 if (state < ARRAY_SIZE(states) && states[state]) 1594 if (state < NLP_STE_MAX_STATE && states[state])
1595 strlcpy(buffer, states[state], size); 1595 strlcpy(buffer, states[state], size);
1596 else 1596 else
1597 snprintf(buffer, size, "unknown (%d)", state); 1597 snprintf(buffer, size, "unknown (%d)", state);
@@ -2815,32 +2815,6 @@ lpfc_findnode_wwpn(struct lpfc_vport *vport, struct lpfc_name *wwpn)
2815} 2815}
2816 2816
2817void 2817void
2818lpfc_dev_loss_delay(unsigned long ptr)
2819{
2820 struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) ptr;
2821 struct lpfc_vport *vport = ndlp->vport;
2822 struct lpfc_hba *phba = vport->phba;
2823 struct lpfc_work_evt *evtp = &ndlp->dev_loss_evt;
2824 unsigned long flags;
2825
2826 evtp = &ndlp->dev_loss_evt;
2827
2828 spin_lock_irqsave(&phba->hbalock, flags);
2829 if (!list_empty(&evtp->evt_listp)) {
2830 spin_unlock_irqrestore(&phba->hbalock, flags);
2831 return;
2832 }
2833
2834 evtp->evt_arg1 = ndlp;
2835 evtp->evt = LPFC_EVT_DEV_LOSS_DELAY;
2836 list_add_tail(&evtp->evt_listp, &phba->work_list);
2837 if (phba->work_wait)
2838 lpfc_worker_wake_up(phba);
2839 spin_unlock_irqrestore(&phba->hbalock, flags);
2840 return;
2841}
2842
2843void
2844lpfc_nlp_init(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, 2818lpfc_nlp_init(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
2845 uint32_t did) 2819 uint32_t did)
2846{ 2820{
@@ -2863,7 +2837,7 @@ lpfc_nlp_init(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
2863 return; 2837 return;
2864} 2838}
2865 2839
2866void 2840static void
2867lpfc_nlp_release(struct kref *kref) 2841lpfc_nlp_release(struct kref *kref)
2868{ 2842{
2869 struct lpfc_nodelist *ndlp = container_of(kref, struct lpfc_nodelist, 2843 struct lpfc_nodelist *ndlp = container_of(kref, struct lpfc_nodelist,