]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
scsi: libsas: Declare sas_set_phy_speed() static
authorDamien Le Moal <dlemoal@kernel.org>
Tue, 12 Sep 2023 23:05:50 +0000 (08:05 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Sep 2023 01:06:44 +0000 (21:06 -0400)
sas_set_phy_speed() is used only within sas_init.c. Declare this function
as static.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230912230551.454357-3-dlemoal@kernel.org
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_init.c
include/scsi/libsas.h

index 8586dc79f2a0bc12b78971c9bef899add77cdefb..9c8cc723170d16e6fbf701a13a6f23a8f4995094 100644 (file)
@@ -315,8 +315,8 @@ int sas_phy_reset(struct sas_phy *phy, int hard_reset)
 }
 EXPORT_SYMBOL_GPL(sas_phy_reset);
 
-int sas_set_phy_speed(struct sas_phy *phy,
-                     struct sas_phy_linkrates *rates)
+static int sas_set_phy_speed(struct sas_phy *phy,
+                            struct sas_phy_linkrates *rates)
 {
        int ret;
 
index 2e800690b127a955a7f7db4a88c23af029ff79a9..d3ace28ee41f2d56c08583f8b758171f7a885d58 100644 (file)
@@ -679,7 +679,6 @@ extern void sas_resume_ha(struct sas_ha_struct *sas_ha);
 extern void sas_resume_ha_no_sync(struct sas_ha_struct *sas_ha);
 extern void sas_suspend_ha(struct sas_ha_struct *sas_ha);
 
-int sas_set_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates);
 int sas_phy_reset(struct sas_phy *phy, int hard_reset);
 int sas_phy_enable(struct sas_phy *phy, int enable);
 extern int sas_queuecommand(struct Scsi_Host *, struct scsi_cmnd *);