[ofa-general] Trivial patch -IPoIB compile failure fix

Pradeep Satyanarayana pradeeps at linux.vnet.ibm.com
Tue Dec 11 15:35:08 PST 2007


ipoib_main.c fails to compile if "Connected Mode" is not enabled
in the .config. Compile tested.

Signed-off-by: Pradeep Satyanarayana <pradeeps at linux.vnet.ibm.com>
---
--- linux-2.6.24-rc3/drivers/infiniband/ulp/ipoib/ipoib_main.c.orig	2007-12-11 16:10:28.000000000 -0800
+++ linux-2.6.24-rc3/drivers/infiniband/ulp/ipoib/ipoib_main.c	2007-12-11 16:11:04.000000000 -0800
@@ -1266,7 +1266,9 @@ static int __init ipoib_init_module(void
 	ipoib_sendq_size = min(ipoib_sendq_size, IPOIB_MAX_QUEUE_SIZE);
 	ipoib_sendq_size = max(ipoib_sendq_size, IPOIB_MIN_QUEUE_SIZE);
 
+#ifdef CONFIG_INFINIBAND_IPOIB_CM
 	ipoib_max_conn_qp = min(ipoib_max_conn_qp, IPOIB_CM_MAX_CONN_QP);
+#endif
 
 	ret = ipoib_register_debugfs();
 	if (ret)




More information about the general mailing list