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.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -1092,7 +1092,11 @@ extern int ata_scsi_ioctl(struct scsi_device *dev, unsigned int cmd, · 1091 unmodified lines | ||
| 1092 | 1092 | #define ATA_SCSI_COMPAT_IOCTL /* empty */ |
| 1093 | 1093 | #endif |
| 1094 | 1094 | extern int ata_scsi_queuecmd(struct Scsi_Host *h, struct scsi_cmnd *cmd); |
| 1095 | +#if IS_ENABLED(CONFIG_ATA) | |
| 1095 | 1096 | bool ata_scsi_dma_need_drain(struct request *rq); |
| 1097 | +#else | |
| 1098 | +#define ata_scsi_dma_need_drain NULL | |
| 1099 | +#endif | |
| 1096 | 1100 | extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev, |
| 1097 | 1101 | unsigned int cmd, void __user *arg); |
| 1098 | 1102 | extern bool ata_link_online(struct ata_link *link); |