Skip to content

Commit 7bb7ee8

Browse files
Christoph Hellwigmartinkpetersen
authored andcommitted
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. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a1e17eb commit 7bb7ee8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/libata.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,11 @@ extern int ata_scsi_ioctl(struct scsi_device *dev, unsigned int cmd,
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);

0 commit comments

Comments
 (0)