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
10921092 #define ATA_SCSI_COMPAT_IOCTL /* empty */
10931093 #endif
10941094 extern int ata_scsi_queuecmd(struct Scsi_Host *h, struct scsi_cmnd *cmd);
1095+#if IS_ENABLED(CONFIG_ATA)
10951096 bool ata_scsi_dma_need_drain(struct request *rq);
1097+#else
1098+#define ata_scsi_dma_need_drain NULL
1099+#endif
10961100 extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev,
10971101 unsigned int cmd, void __user *arg);
10981102 extern bool ata_link_online(struct ata_link *link);