[-next] scsi: bfa: Make two functions static
diff mbox series

Message ID 20190702132324.48136-1-yuehaibing@huawei.com
State Deferred
Headers show
Series
  • [-next] scsi: bfa: Make two functions static
Related show

Commit Message

YueHaibing July 2, 2019, 1:23 p.m. UTC
Fix sparse warnings:

drivers/scsi/bfa/bfa_ioc.c:6982:1: warning: symbol 'bfa_flash_sem_get' was not declared. Should it be static?
drivers/scsi/bfa/bfa_ioc.c:6995:1: warning: symbol 'bfa_flash_sem_put' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/bfa/bfa_ioc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c
index 93471d7..aae1db1 100644
--- a/drivers/scsi/bfa/bfa_ioc.c
+++ b/drivers/scsi/bfa/bfa_ioc.c
@@ -6970,7 +6970,7 @@  bfa_raw_sem_get(void __iomem *bar)
 
 }
 
-bfa_status_t
+static bfa_status_t
 bfa_flash_sem_get(void __iomem *bar)
 {
 	u32 n = FLASH_BLOCKING_OP_MAX;
@@ -6983,7 +6983,7 @@  bfa_flash_sem_get(void __iomem *bar)
 	return BFA_STATUS_OK;
 }
 
-void
+static void
 bfa_flash_sem_put(void __iomem *bar)
 {
 	writel(0, (bar + FLASH_SEM_LOCK_REG));