diff options
author | FUJITA Tomonori <tomof@acm.org> | 2007-08-01 19:20:34 +0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 22:38:09 +0400 |
commit | 0012fdf986c9b9c7fe8d0842a0ad8dd981a06c06 (patch) | |
tree | 61c4d1d819c34c60f90c4544c66817470a38e404 /drivers/scsi/scsi_transport_srp_internal.h | |
parent | e9906fe8c6e8d004635753b7c4189692df281b70 (diff) | |
download | linux-0012fdf986c9b9c7fe8d0842a0ad8dd981a06c06.tar.xz |
[SCSI] scsi_transport_srp: remove tgt dependencies
it's better to remove tgt dependencies in srp transport class since
most people want only initiator support.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_srp_internal.h')
-rw-r--r-- | drivers/scsi/scsi_transport_srp_internal.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_srp_internal.h b/drivers/scsi/scsi_transport_srp_internal.h new file mode 100644 index 000000000000..8a79747f9f3d --- /dev/null +++ b/drivers/scsi/scsi_transport_srp_internal.h @@ -0,0 +1,25 @@ +#include <scsi/scsi_tgt.h> + +#ifdef CONFIG_SCSI_SRP_TGT_ATTRS +static inline int srp_tgt_it_nexus_create(struct Scsi_Host *shost, u64 itn_id, + char *initiator) +{ + return scsi_tgt_it_nexus_create(shost, itn_id, initiator); +} + +static inline int srp_tgt_it_nexus_destroy(struct Scsi_Host *shost, u64 itn_id) +{ + return scsi_tgt_it_nexus_destroy(shost, itn_id); +} + +#else +static inline int srp_tgt_it_nexus_create(struct Scsi_Host *shost, u64 itn_id, + char *initiator) +{ + return 0; +} +static inline int srp_tgt_it_nexus_destroy(struct Scsi_Host *shost, u64 itn_id) +{ + return 0; +} +#endif |