Skip to contentSkip to conversation

lpfc: Fix missing prototype warning for lpfc_fdmi_vendor_attr_mi

PATCH Applied James Smart 2 participants 3 messages Nov 19, 2020 – Nov 24, 2020

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

PATCH 1/1 lpfc: Fix missing prototype warning for lpfc_fdmi_vendor_attr_mi

Function needs to be declared as static.

Fixes 8aaa7bcf07a2 ("scsi: lpfc: Add FDMI Vendor MIB support")
---
 drivers/scsi/lpfc/lpfc_ct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_ct.c +1 -1
index ef4b8620c0e8..dd0b432f7ac5 100644
@@ -3295,7 +3295,7 @@ lpfc_fdmi_smart_attr_security(struct lpfc_vport *vport,
 	return size;
 }
 
-int
+static int
 lpfc_fdmi_vendor_attr_mi(struct lpfc_vport *vport,
 			  struct lpfc_fdmi_attr_def *ad)
 {
Signature · 1 line
2.26.2
#1 lore raw

James,

Quoted 1 line

Function needs to be declared as static.

Applied to 5.11/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering