scsi: libsas: Declare sas_discover_end_dev() static
authorDamien Le Moal <dlemoal@kernel.org>
Tue, 12 Sep 2023 23:05:51 +0000 (08:05 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Sep 2023 01:06:44 +0000 (21:06 -0400)
sas_discover_end_dev() is defined and used only in sas_discover.c.  Define
this function as static.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230912230551.454357-4-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>
drivers/scsi/libsas/sas_discover.c
include/scsi/libsas.h

index ff7b63b10aeb372939d12c95fb4dc1be490c6f1e..8fb7c41c096245077c46b671209623d902fe9c3f 100644 (file)
@@ -275,7 +275,7 @@ static void sas_resume_devices(struct work_struct *work)
  *
  * See comment in sas_discover_sata().
  */
-int sas_discover_end_dev(struct domain_device *dev)
+static int sas_discover_end_dev(struct domain_device *dev)
 {
        return sas_notify_lldd_dev_found(dev);
 }
index d3ace28ee41f2d56c08583f8b758171f7a885d58..f5257103fdb6d8e4bfa007f7acebf84b4f58d353 100644 (file)
@@ -696,8 +696,6 @@ extern struct scsi_transport_template *
 sas_domain_attach_transport(struct sas_domain_function_template *);
 extern struct device_attribute dev_attr_phy_event_threshold;
 
-int  sas_discover_end_dev(struct domain_device *);
-
 void sas_task_abort(struct sas_task *);
 int sas_eh_abort_handler(struct scsi_cmnd *cmd);
 int sas_eh_device_reset_handler(struct scsi_cmnd *cmd);