scst, ib_srpt: Add support for kernel version v5.1

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8064 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-03-21 02:54:31 +00:00
parent 48858f0aec
commit 43a252aef2
4 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -3231,7 +3231,7 @@ static int srpt_map_sg_to_ib_sge(struct srpt_rdma_ch *ch,
struct srpt_send_ioctx *ioctx,
struct scst_cmd *cmd)
{
struct ib_device *dev;
struct ib_device *dev __maybe_unused;
struct scatterlist *sg, *cur_sg;
int sg_cnt;
scst_data_direction dir;