Skip to content

Commit 1345a7d

Browse files
damien-lemoalmartinkpetersen
authored andcommitted
scsi: libsas: Declare sas_discover_end_dev() static
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>
1 parent 9b52c1c commit 1345a7d

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/scsi/libsas/sas_discover.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static void sas_resume_devices(struct work_struct *work)
275275
*
276276
* See comment in sas_discover_sata().
277277
*/
278-
int sas_discover_end_dev(struct domain_device *dev)
278+
static int sas_discover_end_dev(struct domain_device *dev)
279279
{
280280
return sas_notify_lldd_dev_found(dev);
281281
}

include/scsi/libsas.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,6 @@ extern struct scsi_transport_template *
696696
sas_domain_attach_transport(struct sas_domain_function_template *);
697697
extern struct device_attribute dev_attr_phy_event_threshold;
698698

699-
int sas_discover_end_dev(struct domain_device *);
700-
701699
void sas_task_abort(struct sas_task *);
702700
int sas_eh_abort_handler(struct scsi_cmnd *cmd);
703701
int sas_eh_device_reset_handler(struct scsi_cmnd *cmd);

0 commit comments

Comments
 (0)