diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-11-05 12:07:33 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:22:50 -0500 |
commit | a6ababd26aac6ef875df2055dcc147ccda2f8364 (patch) | |
tree | f11de02783b8912c0f6dee378af9491900f895be /drivers/scsi/lpfc/lpfc_init.c | |
parent | 001aac257cf8adbe90cdcba6e07f8d12dfc8fa6b (diff) |
[SCSI] lpfc: minor cleanups
This patch contains the following minor cleanups:
- make the following needlessly global functions static:
- lpfc_els.c: lpfc_register_new_vport()
- lpfc_els.c: lpfc_issue_els_fdisc()
- lpfc_els.c: lpfc_issue_fabric_iocb()
- lpfc_els.c: lpfc_fabric_abort_vport()
- lpfc_hbadisc.c: lpfc_dev_loss_tmo_handler()
- lpfc_hbadisc.c: lpfc_mbx_cmpl_clear_la()
- lpfc_hbadisc.c: lpfc_disc_flush_list()
- lpfc_hbadisc.c: __lpfc_find_node()
- lpfc_init.c: lpfc_hb_timeout()
- lpfc_init.c: lpfc_block_mgmt_io()
- lpfc_sli.c: __lpfc_sli_release_iocbq()
- lpfc_sli.c: lpfc_sli_next_hbq_slot()
- lpfc_sli.c: lpfc_sli_hbqbuf_init_hbqs()
- lpfc_sli.c: lpfc_sli_hbqbuf_find()
- lpfc_sli.c: __lpfc_sli_issue_iocb()
- #if 0 the following unused global functions:
- lpfc_els.c: lpfc_fabric_abort_flogi()
- lpfc_hbadisc.c: lpfc_find_node()
- lpfc_hbadisc.c: lpfc_findnode_rpi()
- remove the unused exports
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: James Smart <James.Smart@Emulex.Com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 0615af41c7b5..0143baf4ba3b 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -508,7 +508,7 @@ lpfc_hba_down_post(struct lpfc_hba *phba) | |||
508 | } | 508 | } |
509 | 509 | ||
510 | /* HBA heart beat timeout handler */ | 510 | /* HBA heart beat timeout handler */ |
511 | void | 511 | static void |
512 | lpfc_hb_timeout(unsigned long ptr) | 512 | lpfc_hb_timeout(unsigned long ptr) |
513 | { | 513 | { |
514 | struct lpfc_hba *phba; | 514 | struct lpfc_hba *phba; |
@@ -1429,6 +1429,16 @@ lpfc_stop_phba_timers(struct lpfc_hba *phba) | |||
1429 | return; | 1429 | return; |
1430 | } | 1430 | } |
1431 | 1431 | ||
1432 | static void | ||
1433 | lpfc_block_mgmt_io(struct lpfc_hba * phba) | ||
1434 | { | ||
1435 | unsigned long iflag; | ||
1436 | |||
1437 | spin_lock_irqsave(&phba->hbalock, iflag); | ||
1438 | phba->sli.sli_flag |= LPFC_BLOCK_MGMT_IO; | ||
1439 | spin_unlock_irqrestore(&phba->hbalock, iflag); | ||
1440 | } | ||
1441 | |||
1432 | int | 1442 | int |
1433 | lpfc_online(struct lpfc_hba *phba) | 1443 | lpfc_online(struct lpfc_hba *phba) |
1434 | { | 1444 | { |
@@ -1475,16 +1485,6 @@ lpfc_online(struct lpfc_hba *phba) | |||
1475 | } | 1485 | } |
1476 | 1486 | ||
1477 | void | 1487 | void |
1478 | lpfc_block_mgmt_io(struct lpfc_hba * phba) | ||
1479 | { | ||
1480 | unsigned long iflag; | ||
1481 | |||
1482 | spin_lock_irqsave(&phba->hbalock, iflag); | ||
1483 | phba->sli.sli_flag |= LPFC_BLOCK_MGMT_IO; | ||
1484 | spin_unlock_irqrestore(&phba->hbalock, iflag); | ||
1485 | } | ||
1486 | |||
1487 | void | ||
1488 | lpfc_unblock_mgmt_io(struct lpfc_hba * phba) | 1488 | lpfc_unblock_mgmt_io(struct lpfc_hba * phba) |
1489 | { | 1489 | { |
1490 | unsigned long iflag; | 1490 | unsigned long iflag; |