summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfad.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-09-30 11:43:27 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-10-01 05:59:53 +0200
commit7cd4cb94cf4f3bfd070d78714d4fe249700250a8 (patch)
treef74131309095f3009912d8041cde494d6c1aff61 /drivers/scsi/bfa/bfad.c
parentscsi: libcxgbi: remove unused function to stop warning (diff)
downloadlinux-7cd4cb94cf4f3bfd070d78714d4fe249700250a8.tar.xz
linux-7cd4cb94cf4f3bfd070d78714d4fe249700250a8.zip
scsi: bfa: Make restart_bfa static
Fix sparse warning: drivers/scsi/bfa/bfad.c:1491:1: warning: symbol 'restart_bfa' was not declared. Should it be static? Link: https://lore.kernel.org/r/20190930094327.46836-1-yuehaibing@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/bfa/bfad.c')
-rw-r--r--drivers/scsi/bfa/bfad.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c
index 2f9213b257a4..eb0c76338295 100644
--- a/drivers/scsi/bfa/bfad.c
+++ b/drivers/scsi/bfa/bfad.c
@@ -1487,8 +1487,7 @@ bfad_pci_error_detected(struct pci_dev *pdev, pci_channel_state_t state)
return ret;
}
-int
-restart_bfa(struct bfad_s *bfad)
+static int restart_bfa(struct bfad_s *bfad)
{
unsigned long flags;
struct pci_dev *pdev = bfad->pcidev;