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();