mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![FUJITA Tomonori](/assets/img/avatar_default.png)
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>
25 lines
590 B
C
25 lines
590 B
C
#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
|