diff options
Diffstat (limited to 'include/scsi')
| -rw-r--r-- | include/scsi/sas_ata.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/scsi/sas_ata.h b/include/scsi/sas_ata.h index 3407c81952..dd5edc9154 100644 --- a/include/scsi/sas_ata.h +++ b/include/scsi/sas_ata.h | |||
| @@ -28,6 +28,8 @@ | |||
| 28 | #include <linux/libata.h> | 28 | #include <linux/libata.h> |
| 29 | #include <scsi/libsas.h> | 29 | #include <scsi/libsas.h> |
| 30 | 30 | ||
| 31 | #ifdef CONFIG_SCSI_SAS_ATA | ||
| 32 | |||
| 31 | static inline int dev_is_sata(struct domain_device *dev) | 33 | static inline int dev_is_sata(struct domain_device *dev) |
| 32 | { | 34 | { |
| 33 | return (dev->rphy->identify.target_port_protocols & SAS_PROTOCOL_SATA); | 35 | return (dev->rphy->identify.target_port_protocols & SAS_PROTOCOL_SATA); |
| @@ -38,4 +40,21 @@ int sas_ata_init_host_and_port(struct domain_device *found_dev, | |||
| 38 | 40 | ||
| 39 | void sas_ata_task_abort(struct sas_task *task); | 41 | void sas_ata_task_abort(struct sas_task *task); |
| 40 | 42 | ||
| 43 | #else | ||
| 44 | |||
| 45 | |||
| 46 | static inline int dev_is_sata(struct domain_device *dev) | ||
| 47 | { | ||
| 48 | return 0; | ||
| 49 | } | ||
| 50 | int sas_ata_init_host_and_port(struct domain_device *found_dev, | ||
| 51 | struct scsi_target *starget) | ||
| 52 | { | ||
| 53 | return 0; | ||
| 54 | } | ||
| 55 | void sas_ata_task_abort(struct sas_task *task) | ||
| 56 | { | ||
| 57 | } | ||
| 58 | #endif | ||
| 59 | |||
| 41 | #endif /* _SAS_ATA_H_ */ | 60 | #endif /* _SAS_ATA_H_ */ |
