ib_srpt: procfs build fix

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5123 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-11-19 08:14:08 +00:00
parent 93eb067bef
commit f239f4d071

View File

@@ -2406,14 +2406,6 @@ static bool srpt_is_target_enabled(struct scst_tgt *scst_tgt)
return srpt_tgt && srpt_tgt->enabled;
}
static int srpt_close_session(struct scst_session *sess)
{
struct srpt_rdma_ch *ch = scst_sess_get_tgt_priv(sess);
srpt_close_ch(ch);
return 0;
}
#endif
/**
@@ -3525,6 +3517,14 @@ static int srpt_detect(struct scst_tgt_template *tp)
return device_count;
}
static int srpt_close_session(struct scst_session *sess)
{
struct srpt_rdma_ch *ch = scst_sess_get_tgt_priv(sess);
srpt_close_ch(ch);
return 0;
}
static int srpt_ch_list_empty(struct srpt_tgt *srpt_tgt)
{
int res;