Skip to content

Commit 2fcd1e2

Browse files
Yue Haibingmartinkpetersen
authored andcommitted
scsi: libsas: Remove unused declarations
Commit 042ebd2 ("scsi: libsas: kill useless ha_event and do some cleanup") removed sas_hae_reset() but not its declaration. Commit 2908d77 ("[SCSI] aic94xx: new driver") declared but never implemented other functions. Signed-off-by: Yue Haibing <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: John Garry <[email protected]> Reviewed-by: Jason Yan <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a18e81d commit 2fcd1e2

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

drivers/scsi/libsas/sas_internal.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ struct sas_phy_data {
4141

4242
void sas_scsi_recover_host(struct Scsi_Host *shost);
4343

44-
int sas_show_class(enum sas_class class, char *buf);
45-
int sas_show_proto(enum sas_protocol proto, char *buf);
46-
int sas_show_linkrate(enum sas_linkrate linkrate, char *buf);
47-
int sas_show_oob_mode(enum sas_oob_mode oob_mode, char *buf);
48-
4944
int sas_register_phys(struct sas_ha_struct *sas_ha);
50-
void sas_unregister_phys(struct sas_ha_struct *sas_ha);
5145

5246
struct asd_sas_event *sas_alloc_event(struct asd_sas_phy *phy, gfp_t gfp_flags);
5347
void sas_free_event(struct asd_sas_event *event);
@@ -91,7 +85,6 @@ int sas_get_report_phy_sata(struct domain_device *dev, int phy_id,
9185
int sas_get_phy_attached_dev(struct domain_device *dev, int phy_id,
9286
u8 *sas_addr, enum sas_device_type *type);
9387
int sas_try_ata_reset(struct asd_sas_phy *phy);
94-
void sas_hae_reset(struct work_struct *work);
9588

9689
void sas_free_device(struct kref *kref);
9790
void sas_destruct_devices(struct asd_sas_port *port);

include/scsi/libsas.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,6 @@ extern struct device_attribute dev_attr_phy_event_threshold;
727727

728728
int sas_discover_root_expander(struct domain_device *);
729729

730-
void sas_init_ex_attr(void);
731-
732730
int sas_ex_revalidate_domain(struct domain_device *);
733731

734732
void sas_unregister_domain_devices(struct asd_sas_port *port, int gone);

0 commit comments

Comments
 (0)