Incorporating prior patch:
 http://marc.info/?l=linux-scsi&m=139611651106838&w=2

  Rashika Kheria <rashika.khe...@gmail.com>
  [PATCH 23/55] scsi: Mark functions as static in lpfc/lpfc_hbadisc.c

  Mark functions as static in lpfc/lpfc_hbadisc.c because they are not
  used outside this file.

  This eliminates the following warnings in lpfc/lpfc_hbadisc.c:
  drivers/scsi/lpfc/lpfc_hbadisc.c:2047:5: warning: no previous prototype for 
‘lpfc_sli4_fcf_pri_list_add’ [-Wmissing-prototypes]
  drivers/scsi/lpfc/lpfc_hbadisc.c:2681:1: warning: no previous prototype for 
‘lpfc_init_vfi_cmpl’ [-Wmissing-prototypes]
  drivers/scsi/lpfc/lpfc_hbadisc.c:4432:1: warning: no previous prototype for 
‘lpfc_nlp_logo_unreg’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.khe...@gmail.com>
Reviewed-by: Josh Triplett <j...@joshtriplett.org>
Reviewed-by: James Smart <james.sm...@emulex.com>
---
 drivers/scsi/lpfc/lpfc_hbadisc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 2a17e31..667d124 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -2042,7 +2042,8 @@ lpfc_sli4_set_fcf_flogi_fail(struct lpfc_hba *phba, 
uint16_t fcf_index)
  * returns:
  * 0=success 1=failure
  **/
-int lpfc_sli4_fcf_pri_list_add(struct lpfc_hba *phba, uint16_t fcf_index,
+static int lpfc_sli4_fcf_pri_list_add(struct lpfc_hba *phba,
+       uint16_t fcf_index,
        struct fcf_record *new_fcf_record)
 {
        uint16_t current_fcf_pri;
@@ -2678,7 +2679,7 @@ out:
  *
  * This function handles completion of init vfi mailbox command.
  */
-void
+static void
 lpfc_init_vfi_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq)
 {
        struct lpfc_vport *vport = mboxq->vport;
@@ -4438,7 +4439,7 @@ lpfc_no_rpi(struct lpfc_hba *phba, struct lpfc_nodelist 
*ndlp)
  * This function will issue an ELS LOGO command after completing
  * the UNREG_RPI.
  **/
-void
+static void
 lpfc_nlp_logo_unreg(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
 {
        struct lpfc_vport  *vport = pmb->vport;
-- 
1.7.11.7




--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to