Skip to content

Commit 9b52c1c

Browse files
damien-lemoalmartinkpetersen
authored andcommitted
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>
1 parent d10b11d commit 9b52c1c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/scsi/libsas/sas_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ int sas_phy_reset(struct sas_phy *phy, int hard_reset)
315315
}
316316
EXPORT_SYMBOL_GPL(sas_phy_reset);
317317

318-
int sas_set_phy_speed(struct sas_phy *phy,
319-
struct sas_phy_linkrates *rates)
318+
static int sas_set_phy_speed(struct sas_phy *phy,
319+
struct sas_phy_linkrates *rates)
320320
{
321321
int ret;
322322

include/scsi/libsas.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,6 @@ extern void sas_resume_ha(struct sas_ha_struct *sas_ha);
679679
extern void sas_resume_ha_no_sync(struct sas_ha_struct *sas_ha);
680680
extern void sas_suspend_ha(struct sas_ha_struct *sas_ha);
681681

682-
int sas_set_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates);
683682
int sas_phy_reset(struct sas_phy *phy, int hard_reset);
684683
int sas_phy_enable(struct sas_phy *phy, int enable);
685684
extern int sas_queuecommand(struct Scsi_Host *, struct scsi_cmnd *);

0 commit comments

Comments
 (0)