From: Damien Le Moal <dlemoal@kernel.org>
To: linux-scsi@vger.kernel.org,
"Martin K . Petersen" <martin.petersen@oracle.com>,
John Garry <john.g.garry@oracle.com>
Subject: [PATCH v4 3/5] scsi: libsas: Make sas_get_ata_info() static
Date: Fri, 25 Jul 2025 10:58:16 +0900 [thread overview]
Message-ID: <20250725015818.171252-4-dlemoal@kernel.org> (raw)
In-Reply-To: <20250725015818.171252-1-dlemoal@kernel.org>
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>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
---
drivers/scsi/libsas/sas_ata.c | 2 +-
include/scsi/sas_ata.h | 6 ------
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c
index 2cbf38b18c5c..cc093cdc9c69 100644
--- a/drivers/scsi/libsas/sas_ata.c
+++ b/drivers/scsi/libsas/sas_ata.c
@@ -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;
diff --git a/include/scsi/sas_ata.h b/include/scsi/sas_ata.h
index 8dddd0036f99..5e3475975aee 100644
--- a/include/scsi/sas_ata.h
+++ b/include/scsi/sas_ata.h
@@ -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)
{
}
--
2.50.1
next prev parent reply other threads:[~2025-07-25 2:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-25 1:58 [PATCH v4 0/5] libsas cleanups Damien Le Moal
2025-07-25 1:58 ` [PATCH v4 1/5] scsi: libsas: Refactor dev_is_sata() Damien Le Moal
2025-07-25 6:17 ` Jason Yan
2025-07-25 1:58 ` [PATCH v4 2/5] scsi: libsas: Simplify sas_ata_wait_eh() Damien Le Moal
2025-07-25 6:20 ` Jason Yan
2025-07-25 1:58 ` Damien Le Moal [this message]
2025-07-25 6:22 ` [PATCH v4 3/5] scsi: libsas: Make sas_get_ata_info() static Jason Yan
2025-07-25 1:58 ` [PATCH v4 4/5] scsi: libsas: Move declarations of internal functions to sas_internal.h Damien Le Moal
2025-07-25 6:23 ` Jason Yan
2025-07-25 1:58 ` [PATCH v4 5/5] scsi: libsas: Use a bool for sas_deform_port() second argument Damien Le Moal
2025-07-25 6:24 ` Jason Yan
2025-07-25 13:06 ` [PATCH v4 0/5] libsas cleanups Martin K. Petersen
2025-07-31 4:44 ` Martin K. Petersen
2025-08-06 2:39 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250725015818.171252-4-dlemoal@kernel.org \
--to=dlemoal@kernel.org \
--cc=john.g.garry@oracle.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox