Skip to contentSkip to conversation

scsi: lpfc: Make lpfc_sli4_oas_verify static

PATCH Applied Yue Haibing 3 participants 3 messages Apr 17, 2019 – Apr 19, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: lpfc: Make lpfc_sli4_oas_verify static

From: YueHaibing <[email protected]>

Fix sparse warning:

drivers/scsi/lpfc/lpfc_init.c:13091:1: warning:
symbol 'lpfc_sli4_oas_verify' was not declared. Should it be static?

---
 drivers/scsi/lpfc/lpfc_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_init.c +1 -1
index 8e0de48..eaaef68 100644
@@ -13087,7 +13087,7 @@ lpfc_io_resume(struct pci_dev *pdev)
  * is destroyed.
  *
  **/
-void
+static void
 lpfc_sli4_oas_verify(struct lpfc_hba *phba)
 {
 
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Yue Haibing

From: YueHaibing <[email protected]>

Fix sparse warning:

drivers/scsi/lpfc/lpfc_init.c:13091:1: warning:
symbol 'lpfc_sli4_oas_verify' was not declared. Should it be static?

---
  drivers/scsi/lpfc/lpfc_init.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_init.c +0 -0
index 8e0de48..eaaef68 100644

drivers/scsi/lpfc/lpfc_init.c lpfc_io_resume(struct pci_dev *pdev) · line 13093

Quoted 8 lines
drivers/scsi/lpfc/lpfc_init.c +1 -1
@@ -13087,7 +13087,7 @@ lpfc_io_resume(struct pci_dev *pdev)
   * is destroyed.
   *
   **/
-void
+static void
  lpfc_sli4_oas_verify(struct lpfc_hba *phba)
  {
 

Looks good. Interesting as there's a prototype for the function earlier which defines it as static.

-- james

#2 lore raw
In reply to Yue Haibing

Yue,

Quoted 4 lines

Fix sparse warning:

drivers/scsi/lpfc/lpfc_init.c:13091:1: warning:
symbol 'lpfc_sli4_oas_verify' was not declared. Should it be static?

Applied to 5.2/scsi-queue, thanks.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering