Skip to contentSkip to conversation

scsi: lpfc: Mark lpfc_nvmet_prep_abort_wqe with static keyword

PATCH In review Zou Wei 2 participants 2 messages Nov 18, 2020 – Nov 19, 2020

Subsystems (2)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 scsi: lpfc: Mark lpfc_nvmet_prep_abort_wqe with static keyword

Fix the following sparse warning:

drivers/scsi/lpfc/lpfc_nvmet.c:3340:1: warning: symbol 'lpfc_nvmet_prep_abort_wqe' was not declared. Should it be static?

---
 drivers/scsi/lpfc/lpfc_nvmet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_nvmet.c +1 -1
index c8b9434..a71df87 100644
@@ -3336,7 +3336,7 @@ lpfc_nvmet_unsol_issue_abort(struct lpfc_hba *phba,
  *
  * This function is called with hbalock held.
  **/
-void
+static void
 lpfc_nvmet_prep_abort_wqe(struct lpfc_iocbq *pwqeq, u16 xritag, u8 opt)
 {
 	union lpfc_wqe128 *wqe = &pwqeq->wqe;
Signature · 1 line
2.6.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Zou Wei

Fix the following sparse warning:

drivers/scsi/lpfc/lpfc_nvmet.c:3340:1: warning: symbol 'lpfc_nvmet_prep_abort_wqe' was not declared. Should it be static?

---
  drivers/scsi/lpfc/lpfc_nvmet.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_nvmet.c +0 -0
index c8b9434..a71df87 100644

drivers/scsi/lpfc/lpfc_nvmet.c lpfc_nvmet_unsol_issue_abort(struct lpfc_hba *phba, · line 3342

Quoted 8 lines
drivers/scsi/lpfc/lpfc_nvmet.c +1 -1
@@ -3336,7 +3336,7 @@ lpfc_nvmet_unsol_issue_abort(struct lpfc_hba *phba,
   *
   * This function is called with hbalock held.
   **/
-void
+static void
  lpfc_nvmet_prep_abort_wqe(struct lpfc_iocbq *pwqeq, u16 xritag, u8 opt)
  {
  	union lpfc_wqe128 *wqe = &pwqeq->wqe;

Zou, Thank You .  I just submitted the same patch.   Either one Martin wants to take.. :)

-- james