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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: John Garry <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 9b52c1c commit 1345a7d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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)