From 47c84d3ec8404761a315805f75f857ad19a42588 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 9 Sep 2013 05:46:22 +0000 Subject: [PATCH] ib_srpt: Build fix for r4984 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4992 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index d60de6a4c..0bc0cf373 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -703,6 +703,7 @@ static int srpt_refresh_port(struct srpt_port *sport) TRACE_ENTRY(); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) /* commit a3f5adaf4 */ switch (rdma_port_get_link_layer(sport->sdev->device, sport->port)) { case IB_LINK_LAYER_UNSPECIFIED: case IB_LINK_LAYER_INFINIBAND: @@ -711,6 +712,7 @@ static int srpt_refresh_port(struct srpt_port *sport) default: return 0; } +#endif memset(&port_modify, 0, sizeof(port_modify)); port_modify.set_port_cap_mask = IB_PORT_DEVICE_MGMT_SUP;