]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
scsi: isci: Make scu_link_layer_set_txcomsas_timeout() static
authorJason Yan <yanaijie@huawei.com>
Tue, 15 Sep 2020 08:40:00 +0000 (16:40 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 16 Sep 2020 01:30:48 +0000 (21:30 -0400)
This addresses the following sparse warning:

drivers/scsi/isci/phy.c:672:6: warning: symbol
'scu_link_layer_set_txcomsas_timeout' was not declared. Should it be
static?

Link: https://lore.kernel.org/r/20200915084000.2826741-1-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/isci/phy.c

index 7f9b3f20e5e4228c31afb9d9e73d1783209dc12b..251d763130d4ff0b07077a2162bc05bf375bded0 100644 (file)
@@ -669,7 +669,7 @@ static const char *phy_event_name(u32 event_code)
                phy_state_name(state), phy_event_name(code), code)
 
 
-void scu_link_layer_set_txcomsas_timeout(struct isci_phy *iphy, u32 timeout)
+static void scu_link_layer_set_txcomsas_timeout(struct isci_phy *iphy, u32 timeout)
 {
        u32 val;