[openib-general] [PATCH] Fix SDP debug build for new CM API

Roland Dreier rolandd at cisco.com
Mon Sep 19 10:11:25 PDT 2005


The CM API has changed so that the req_rcvd event no longer has a
device member.  Use cm_id->device instead when printing the device's
name in a debug message.

Signed-off-by: Roland Dreier <rolandd at cisco.com>

--- linux-kernel/infiniband/ulp/sdp/sdp_pass.c	(revision 3480)
+++ linux-kernel/infiniband/ulp/sdp/sdp_pass.c	(working copy)
@@ -360,8 +360,7 @@ int sdp_cm_req_handler(struct ib_cm_id *
 	sdp_dbg_ctrl(NULL,
 		     "CM REQ. comm <%08x> SID <%016llx> ca <%s> port <%d>",
 		     cm_id->local_id, (unsigned long long)cm_id->service_id,
-		     event->param.req_rcvd.device->name,
-		     event->param.req_rcvd.port);
+		     cm_id->device->name, event->param.req_rcvd.port);
 	/*
 	 * check Hello Header, to determine if we want the connection.
 	 */



More information about the general mailing list