diff options
author | FUJITA Tomonori <tomof@acm.org> | 2007-08-02 00:20:34 +0900 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:38:09 -0400 |
commit | 0012fdf986c9b9c7fe8d0842a0ad8dd981a06c06 (patch) | |
tree | 61c4d1d819c34c60f90c4544c66817470a38e404 /drivers/scsi/scsi_transport_srp_internal.h | |
parent | e9906fe8c6e8d004635753b7c4189692df281b70 (diff) | |
download | op-kernel-dev-0012fdf986c9b9c7fe8d0842a0ad8dd981a06c06.zip op-kernel-dev-0012fdf986c9b9c7fe8d0842a0ad8dd981a06c06.tar.gz |
[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 0000000..8a79747 --- /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 |