Skip to content

Commit

Permalink
scsi: libsas: Do not export sas_ata_wait_after_reset()
Browse files Browse the repository at this point in the history
sas_ata_wait_after_reset() does not need to be exported since it is no
longer referenced outside libsas.

Signed-off-by: Jie Zhan <zhanjie9@hisilicon.com>
Link: https://lore.kernel.org/r/20221118083714.4034612-6-zhanjie9@hisilicon.com
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Jie Zhan authored and Martin K. Petersen committed Nov 26, 2022
1 parent 3c2673a commit 4d450cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/libsas/sas_ata.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ static int sas_ata_printk(const char *level, const struct domain_device *ddev,
return r;
}

int sas_ata_wait_after_reset(struct domain_device *dev, unsigned long deadline)
static int sas_ata_wait_after_reset(struct domain_device *dev, unsigned long deadline)
{
struct sata_device *sata_dev = &dev->sata_dev;
int (*check_ready)(struct ata_link *link);
Expand All @@ -405,7 +405,6 @@ int sas_ata_wait_after_reset(struct domain_device *dev, unsigned long deadline)

return ret;
}
EXPORT_SYMBOL_GPL(sas_ata_wait_after_reset);

static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class,
unsigned long deadline)
Expand Down
7 changes: 0 additions & 7 deletions include/scsi/sas_ata.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ void sas_ata_end_eh(struct ata_port *ap);
void sas_ata_device_link_abort(struct domain_device *dev, bool force_reset);
int sas_execute_ata_cmd(struct domain_device *device, u8 *fis,
int force_phy_id);
int sas_ata_wait_after_reset(struct domain_device *dev, unsigned long deadline);
int smp_ata_check_ready_type(struct ata_link *link);
#else

Expand Down Expand Up @@ -100,12 +99,6 @@ static inline int sas_execute_ata_cmd(struct domain_device *device, u8 *fis,
return 0;
}

static inline int sas_ata_wait_after_reset(struct domain_device *dev,
unsigned long deadline)
{
return -ETIMEDOUT;
}

static inline int smp_ata_check_ready_type(struct ata_link *link)
{
return 0;
Expand Down

0 comments on commit 4d450cf

Please sign in to comment.