diff options
author | Damien Le Moal <dlemoal@kernel.org> | 2023-09-13 01:05:50 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-09-14 03:06:44 +0200 |
commit | 9b52c1c6cafd7ebec34f1d2e5e3cdb1a0dffe81b (patch) | |
tree | fb65aa63693856afd2f92c418d3b2ea2d7086dc5 /drivers/scsi/libsas/sas_init.c | |
parent | scsi: libsas: Move local functions declarations to sas_internal.h (diff) | |
download | linux-9b52c1c6cafd7ebec34f1d2e5e3cdb1a0dffe81b.tar.xz linux-9b52c1c6cafd7ebec34f1d2e5e3cdb1a0dffe81b.zip |
scsi: libsas: Declare sas_set_phy_speed() static
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>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
-rw-r--r-- | drivers/scsi/libsas/sas_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libsas/sas_init.c b/drivers/scsi/libsas/sas_init.c index 8586dc79f2a0..9c8cc723170d 100644 --- a/drivers/scsi/libsas/sas_init.c +++ b/drivers/scsi/libsas/sas_init.c @@ -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; |