From 034f8bc3f1755b30f8c79ff2471f564b0c659a92 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 12 Dec 2015 16:02:37 +0000 Subject: [PATCH] isert-scst: Unbreak nightly build git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6740 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/isert-scst/iser_rdma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iscsi-scst/kernel/isert-scst/iser_rdma.c b/iscsi-scst/kernel/isert-scst/iser_rdma.c index 3b48f5bea..499a941fe 100644 --- a/iscsi-scst/kernel/isert-scst/iser_rdma.c +++ b/iscsi-scst/kernel/isert-scst/iser_rdma.c @@ -963,7 +963,8 @@ static struct isert_device *isert_device_create(struct ib_device *ib_dev) goto fail_cq; } -#ifndef IB_CREATE_CQ_HAS_INIT_ATTR +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) && \ + !defined(IB_CREATE_CQ_HAS_INIT_ATTR) cq = ib_create_cq(ib_dev, isert_cq_comp_handler, isert_async_evt_handler,