* 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
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -1094,18 +1094,6 @@ extern int ata_scsi_ioctl(struct scsi_device *dev, unsigned int cmd, · 1093 unmodified lines | ||
| 1094 | 1094 | extern int ata_scsi_queuecmd(struct Scsi_Host *h, struct scsi_cmnd *cmd); |
| 1095 | 1095 | extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev, |
| 1096 | 1096 | 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); | |
| 1109 | 1097 | extern bool ata_link_online(struct ata_link *link); |
| 1110 | 1098 | extern bool ata_link_offline(struct ata_link *link); |
| 1111 | 1099 | #ifdef CONFIG_PM |
| @@ -1235,6 +1223,18 @@ extern int sata_link_debounce(struct ata_link *link, · 123 unmodified lines | ||
| 1235 | 1223 | extern int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy, |
| 1236 | 1224 | bool spm_wakeup); |
| 1237 | 1225 | 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); | |
| 1238 | 1238 | extern void ata_tf_to_fis(const struct ata_taskfile *tf, |
| 1239 | 1239 | u8 pmp, int is_cmd, u8 *fis); |
| 1240 | 1240 | extern void ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf); |