scsi: bfa: bfa_fcpim.c: make two functions static
authorJason Yan <yanaijie@huawei.com>
Tue, 7 Apr 2020 03:21:58 +0000 (11:21 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Apr 2020 01:34:50 +0000 (21:34 -0400)
Fix the following sparse warning:

drivers/scsi/bfa/bfa_fcpim.c:440:1: warning: symbol
'bfa_ioim_profile_comp' was not declared. Should it be static?
drivers/scsi/bfa/bfa_fcpim.c:457:1: warning: symbol
'bfa_ioim_profile_start' was not declared. Should it be static?

Link: https://lore.kernel.org/r/20200407032202.36789-4-yanaijie@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfa_fcpim.c

index 284baa3b0c8e2e284b01a11bfaf3e98cc4318f09..766f2b5ed2ab45cf1eda37da550f29097d7c64dc 100644 (file)
@@ -436,7 +436,7 @@ bfa_fcpim_port_iostats(struct bfa_s *bfa,
        return BFA_STATUS_OK;
 }
 
-void
+static void
 bfa_ioim_profile_comp(struct bfa_ioim_s *ioim)
 {
        struct bfa_itnim_latency_s *io_lat =
@@ -453,7 +453,7 @@ bfa_ioim_profile_comp(struct bfa_ioim_s *ioim)
        io_lat->avg[idx] += val;
 }
 
-void
+static void
 bfa_ioim_profile_start(struct bfa_ioim_s *ioim)
 {
        ioim->start_time = jiffies;