diff mbox series

lpfc: Fix missing prototype warning for lpfc_fdmi_vendor_attr_mi

Message ID 20201119203328.121772-1-james.smart@broadcom.com
State New
Headers show
Series lpfc: Fix missing prototype warning for lpfc_fdmi_vendor_attr_mi | expand

Commit Message

James Smart Nov. 19, 2020, 8:33 p.m. UTC
Function needs to be declared as static.

Fixes: 8aaa7bcf07a2 ("scsi: lpfc: Add FDMI Vendor MIB support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
---
 drivers/scsi/lpfc/lpfc_ct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen Nov. 20, 2020, 3:19 a.m. UTC | #1
James,

> Function needs to be declared as static.


Applied to 5.11/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering
Martin K. Petersen Nov. 24, 2020, 3:58 a.m. UTC | #2
On Thu, 19 Nov 2020 12:33:28 -0800, James Smart wrote:

> Function needs to be declared as static.


Applied to 5.11/scsi-queue, thanks!

[1/1] scsi: lpfc: Fix missing prototype warning for lpfc_fdmi_vendor_attr_mi()
      https://git.kernel.org/mkp/scsi/c/809032ddf9c6

-- 
Martin K. Petersen	Oracle Linux Engineering
diff mbox series

Patch

diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c
index ef4b8620c0e8..dd0b432f7ac5 100644
--- a/drivers/scsi/lpfc/lpfc_ct.c
+++ b/drivers/scsi/lpfc/lpfc_ct.c
@@ -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)
 {