History

ata: move ata_sas_*() to libata-sata.c

* un-inline: - ata_scsi_dump_cdb() - __ata_scsi_queuecmd() * un-static: - ata_scsi_sdev_config() - ata_scsi_dev_config() - ata_scsi_dump_cdb() - __ata_scsi_queuecmd() * move ata_sas_*() to libata-sata.c: * add static inlines for CONFIG_SATA_HOST=n case for ata_sas_{allocate,free}_tag() Code size savings on m68k arch using (modified) atari_defconfig: text data bss dec hex filename before: 19137 23 576 19736 4d18 drivers/ata/libata-scsi.o after: 18330 23 576 18929 49f1 drivers/ata/libata-scsi.o

Bartlomiej Zolnierkiewicz committed 6 years ago

Commit 15964ff1 parent ec811a94 files · +245 −233Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/libata.h+12−12
@@ -1094,18 +1094,6 @@ extern int ata_scsi_ioctl(struct scsi_device *dev, unsigned int cmd, · 1093 unmodified lines
10941094 extern int ata_scsi_queuecmd(struct Scsi_Host *h, struct scsi_cmnd *cmd);
10951095 extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev,
10961096 unsigned int cmd, void __user *arg);
1097−extern void ata_sas_port_destroy(struct ata_port *);
1098−extern struct ata_port *ata_sas_port_alloc(struct ata_host *,
1099− struct ata_port_info *, struct Scsi_Host *);
1100−extern void ata_sas_async_probe(struct ata_port *ap);
1101−extern int ata_sas_sync_probe(struct ata_port *ap);
1102−extern int ata_sas_port_init(struct ata_port *);
1103−extern int ata_sas_port_start(struct ata_port *ap);
1104−extern int ata_sas_tport_add(struct device *parent, struct ata_port *ap);
1105−extern void ata_sas_tport_delete(struct ata_port *ap);
1106−extern void ata_sas_port_stop(struct ata_port *ap);
1107−extern int ata_sas_slave_configure(struct scsi_device *, struct ata_port *);
1108−extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap);
11091097 extern bool ata_link_online(struct ata_link *link);
11101098 extern bool ata_link_offline(struct ata_link *link);
11111099 #ifdef CONFIG_PM
@@ -1235,6 +1223,18 @@ extern int sata_link_debounce(struct ata_link *link, · 123 unmodified lines
12351223 extern int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
12361224 bool spm_wakeup);
12371225 extern int ata_slave_link_init(struct ata_port *ap);
1226+extern void ata_sas_port_destroy(struct ata_port *);
1227+extern struct ata_port *ata_sas_port_alloc(struct ata_host *,
1228+ struct ata_port_info *, struct Scsi_Host *);
1229+extern void ata_sas_async_probe(struct ata_port *ap);
1230+extern int ata_sas_sync_probe(struct ata_port *ap);
1231+extern int ata_sas_port_init(struct ata_port *);
1232+extern int ata_sas_port_start(struct ata_port *ap);
1233+extern int ata_sas_tport_add(struct device *parent, struct ata_port *ap);
1234+extern void ata_sas_tport_delete(struct ata_port *ap);
1235+extern void ata_sas_port_stop(struct ata_port *ap);
1236+extern int ata_sas_slave_configure(struct scsi_device *, struct ata_port *);
1237+extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap);
12381238 extern void ata_tf_to_fis(const struct ata_taskfile *tf,
12391239 u8 pmp, int is_cmd, u8 *fis);
12401240 extern void ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf);