History

scsi: libata: Provide an ata_scsi_dma_need_drain stub for !CONFIG_ATA

SAS drivers can be compiled with ata support disabled. Provide a stub so that the drivers don't have to ifdef around wiring up ata_scsi_dma_need_drain.

Christoph Hellwig committed 6 years ago

Commit 7bb7ee81 parent a1e17eb1 file · +4 −0Browse files

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

Unified · Split

include/linux/libata.h+4−0
@@ -1092,7 +1092,11 @@ extern int ata_scsi_ioctl(struct scsi_device *dev, unsigned int cmd, · 1091 unmodified lines
1092#define ATA_SCSI_COMPAT_IOCTL /* empty */1092#define ATA_SCSI_COMPAT_IOCTL /* empty */
1093#endif1093#endif
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);
1095#if IS_ENABLED(CONFIG_ATA)
1095bool ata_scsi_dma_need_drain(struct request *rq);1096bool ata_scsi_dma_need_drain(struct request *rq);
1097#else
1098#define ata_scsi_dma_need_drain NULL
1099#endif
1096extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev,1100extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev,
1097 unsigned int cmd, void __user *arg);1101 unsigned int cmd, void __user *arg);
1098extern bool ata_link_online(struct ata_link *link);1102extern bool ata_link_online(struct ata_link *link);