Skip to content

Commit aad4b4d

Browse files
Christoph Hellwigmartinkpetersen
authored andcommitted
scsi: libata: Fix the ata_scsi_dma_need_drain stub
We not only need the stub when libata is disabled, but also if it is modular and there are built-in SAS drivers (which can happen when SCSI_SAS_ATA is disabled). Link: https://lore.kernel.org/r/[email protected] Fixes: b8f1d1e ("scsi: Wire up ata_scsi_dma_need_drain for SAS HBA drivers") Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 632f24f commit aad4b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/libata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ 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)
1095+
#if IS_REACHABLE(CONFIG_ATA)
10961096
bool ata_scsi_dma_need_drain(struct request *rq);
10971097
#else
10981098
#define ata_scsi_dma_need_drain NULL

0 commit comments

Comments
 (0)