From f623815252070fea31892fde6da919000370e328 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 25 Jul 2019 04:32:38 +0000 Subject: [PATCH] isert-scst: Unbreak the build for kernel versions <= v4.8 Fixes: 36c0648b7e71 ("isert-scst: Fix the build against kernel v5.3") / r8475. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8482 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/isert-scst/iser_rdma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iscsi-scst/kernel/isert-scst/iser_rdma.c b/iscsi-scst/kernel/isert-scst/iser_rdma.c index c6b724dea..86545ce70 100644 --- a/iscsi-scst/kernel/isert-scst/iser_rdma.c +++ b/iscsi-scst/kernel/isert-scst/iser_rdma.c @@ -1144,6 +1144,9 @@ out: static void isert_device_release(struct isert_device *isert_dev) { +#ifndef IB_PD_HAS_LOCAL_DMA_LKEY + int err; +#endif int i; TRACE_ENTRY();