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
1094extern int ata_scsi_queuecmd(struct Scsi_Host *h, struct scsi_cmnd *cmd);1094extern int ata_scsi_queuecmd(struct Scsi_Host *h, struct scsi_cmnd *cmd);
1095extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev,1095extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev,
1096 unsigned int cmd, void __user *arg);1096 unsigned int cmd, void __user *arg);
1097extern void ata_sas_port_destroy(struct ata_port *);
1098extern struct ata_port *ata_sas_port_alloc(struct ata_host *,
1099 struct ata_port_info *, struct Scsi_Host *);
1100extern void ata_sas_async_probe(struct ata_port *ap);
1101extern int ata_sas_sync_probe(struct ata_port *ap);
1102extern int ata_sas_port_init(struct ata_port *);
1103extern int ata_sas_port_start(struct ata_port *ap);
1104extern int ata_sas_tport_add(struct device *parent, struct ata_port *ap);
1105extern void ata_sas_tport_delete(struct ata_port *ap);
1106extern void ata_sas_port_stop(struct ata_port *ap);
1107extern int ata_sas_slave_configure(struct scsi_device *, struct ata_port *);
1108extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap);
1109extern bool ata_link_online(struct ata_link *link);1097extern bool ata_link_online(struct ata_link *link);
1110extern bool ata_link_offline(struct ata_link *link);1098extern bool ata_link_offline(struct ata_link *link);
1111#ifdef CONFIG_PM1099#ifdef CONFIG_PM
@@ -1235,6 +1223,18 @@ extern int sata_link_debounce(struct ata_link *link, · 123 unmodified lines
1235extern int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,1223extern int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
1236 bool spm_wakeup);1224 bool spm_wakeup);
1237extern int ata_slave_link_init(struct ata_port *ap);1225extern int ata_slave_link_init(struct ata_port *ap);
1226extern void ata_sas_port_destroy(struct ata_port *);
1227extern struct ata_port *ata_sas_port_alloc(struct ata_host *,
1228 struct ata_port_info *, struct Scsi_Host *);
1229extern void ata_sas_async_probe(struct ata_port *ap);
1230extern int ata_sas_sync_probe(struct ata_port *ap);
1231extern int ata_sas_port_init(struct ata_port *);
1232extern int ata_sas_port_start(struct ata_port *ap);
1233extern int ata_sas_tport_add(struct device *parent, struct ata_port *ap);
1234extern void ata_sas_tport_delete(struct ata_port *ap);
1235extern void ata_sas_port_stop(struct ata_port *ap);
1236extern int ata_sas_slave_configure(struct scsi_device *, struct ata_port *);
1237extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap);
1238extern void ata_tf_to_fis(const struct ata_taskfile *tf,1238extern void ata_tf_to_fis(const struct ata_taskfile *tf,
1239 u8 pmp, int is_cmd, u8 *fis);1239 u8 pmp, int is_cmd, u8 *fis);
1240extern void ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf);1240extern void ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf);