Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Damien Le Moal and committed by
Martin K. Petersen
1345a7d9 9b52c1c6

+1 -3
+1 -1
drivers/scsi/libsas/sas_discover.c
··· 275 275 * 276 276 * See comment in sas_discover_sata(). 277 277 */ 278 - int sas_discover_end_dev(struct domain_device *dev) 278 + static int sas_discover_end_dev(struct domain_device *dev) 279 279 { 280 280 return sas_notify_lldd_dev_found(dev); 281 281 }
-2
include/scsi/libsas.h
··· 696 696 sas_domain_attach_transport(struct sas_domain_function_template *); 697 697 extern struct device_attribute dev_attr_phy_event_threshold; 698 698 699 - int sas_discover_end_dev(struct domain_device *); 700 - 701 699 void sas_task_abort(struct sas_task *); 702 700 int sas_eh_abort_handler(struct scsi_cmnd *cmd); 703 701 int sas_eh_device_reset_handler(struct scsi_cmnd *cmd);