]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: libsas: Make sas_get_ata_info() static
authorDamien Le Moal <dlemoal@kernel.org>
Fri, 25 Jul 2025 01:58:16 +0000 (10:58 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Jul 2025 13:03:56 +0000 (09:03 -0400)
The function sas_get_ata_info() is used only in
drivers/scsi/libsas/sas_ata.c. Remove its definition from
include/scsi/sas_ata.h and make this function static.

No functional changes.

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

index 2cbf38b18c5c309b48aca9e8fd30ea6f95bc6b1b..cc093cdc9c69889562fdf56459117646e91ba6b0 100644 (file)
@@ -252,7 +252,7 @@ static int sas_get_ata_command_set(struct domain_device *dev)
        return ata_dev_classify(&tf);
 }
 
-int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy)
+static int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy)
 {
        if (phy->attached_tproto & SAS_PROTOCOL_STP)
                dev->tproto = phy->attached_tproto;
index 8dddd0036f99b56f97fb9d5e58e7dd476304f51b..5e3475975aee36407d6758378d59f6211a56b8cd 100644 (file)
@@ -28,7 +28,6 @@ static inline bool dev_is_sata(struct domain_device *dev)
        }
 }
 
-int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy);
 int sas_ata_init(struct domain_device *dev);
 void sas_ata_task_abort(struct sas_task *task);
 void sas_ata_strategy_handler(struct Scsi_Host *shost);
@@ -96,11 +95,6 @@ static inline void sas_resume_sata(struct asd_sas_port *port)
 {
 }
 
-static inline int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy)
-{
-       return 0;
-}
-
 static inline void sas_ata_end_eh(struct ata_port *ap)
 {
 }