ib_srpt: Build fix for r4984

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4992 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-09-09 05:46:22 +00:00
parent 08bfd4c19a
commit 47c84d3ec8
+2
View File
@@ -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;