diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2007-07-22 13:15:55 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-07-22 13:23:13 -0500 |
commit | b91421749a1840148d8c81637c03c0ace3f35269 (patch) | |
tree | e3e2f59f9a14051c8277793f214db094380d3ebb /include/scsi | |
parent | 41e1703b9b88cf9b5e91cdd2f7dcded3ec3917cb (diff) | |
download | linux-3.10-b91421749a1840148d8c81637c03c0ace3f35269.tar.gz linux-3.10-b91421749a1840148d8c81637c03c0ace3f35269.tar.bz2 linux-3.10-b91421749a1840148d8c81637c03c0ace3f35269.zip |
[SCSI] libsas: make ATA functions selectable by a config option
Not everyone wants libsas automatically to pull in libata. This patch
makes the behaviour configurable, so you can build libsas with or
without ATA support.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
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 3407c819522..dd5edc91541 100644 --- a/include/scsi/sas_ata.h +++ b/include/scsi/sas_ata.h @@ -28,6 +28,8 @@ #include <linux/libata.h> #include <scsi/libsas.h> +#ifdef CONFIG_SCSI_SAS_ATA + static inline int dev_is_sata(struct domain_device *dev) { 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, void sas_ata_task_abort(struct sas_task *task); +#else + + +static inline int dev_is_sata(struct domain_device *dev) +{ + return 0; +} +int sas_ata_init_host_and_port(struct domain_device *found_dev, + struct scsi_target *starget) +{ + return 0; +} +void sas_ata_task_abort(struct sas_task *task) +{ +} +#endif + #endif /* _SAS_ATA_H_ */ |