[openib-general] [PATCH][SDP][6/22] Remove use of leading underscores in static names in sdp_event.c

Tom Duffy Tom.Duffy at Sun.COM
Mon Feb 28 14:01:01 PST 2005


Signed-off-by: Tom Duffy <tduffy at sun.com>

Index: drivers/infiniband/ulp/sdp/sdp_event.c
===================================================================
--- drivers/infiniband/ulp/sdp/sdp_event.c	(revision 1929)
+++ drivers/infiniband/ulp/sdp/sdp_event.c	(working copy)
@@ -198,9 +198,8 @@ done:
  * Connection establishment IB/CM callback functions
  */
 
-static int _sdp_cm_idle(struct ib_cm_id *cm_id,
-			struct ib_cm_event *event,
-			struct sdp_opt *conn)
+static int sdp_cm_idle(struct ib_cm_id *cm_id, struct ib_cm_event *event,
+		       struct sdp_opt *conn)
 {
 	sdp_dbg_ctrl(conn, "CM IDLE. commID <%08x> event <%d> status <%d>",
 		     cm_id->local_id, event->event, event->param.send_status);
@@ -241,9 +240,8 @@ static int _sdp_cm_idle(struct ib_cm_id 
 	return 0;
 }
 
-static int _sdp_cm_established(struct ib_cm_id *cm_id,
-			       struct ib_cm_event *event,
-			       struct sdp_opt *conn)
+static int sdp_cm_established(struct ib_cm_id *cm_id, struct ib_cm_event *event,
+			      struct sdp_opt *conn)
 {
 	int result = 0;
 
@@ -309,11 +307,10 @@ done:
 }
 
 /*
- * _sdp_cm_timewait - handler for connection Time Wait completion
+ * sdp_cm_timewait - handler for connection Time Wait completion
  */
-static int _sdp_cm_timewait(struct ib_cm_id *cm_id,
-			    struct ib_cm_event *event,
-			    struct sdp_opt *conn)
+static int sdp_cm_timewait(struct ib_cm_id *cm_id, struct ib_cm_event *event,
+			   struct sdp_opt *conn)
 {
 	int result = 0;
 
@@ -420,14 +417,14 @@ int sdp_cm_event_handler(struct ib_cm_id
 		result = sdp_cm_rep_handler(cm_id, event, conn);
 		break;
 	case IB_CM_IDLE:
-		result = _sdp_cm_idle(cm_id, event, conn);
+		result = sdp_cm_idle(cm_id, event, conn);
 		break;
 	case IB_CM_ESTABLISHED:
-		result = _sdp_cm_established(cm_id, event, conn);
+		result = sdp_cm_established(cm_id, event, conn);
 		break;
 	case IB_CM_DREQ_RCVD:
 	case IB_CM_TIMEWAIT:
-		result = _sdp_cm_timewait(cm_id, event, conn);
+		result = sdp_cm_timewait(cm_id, event, conn);
 		break;
 	default:
 		sdp_dbg_warn(conn, "Unexpected CM state <%d>", cm_id->state);
@@ -444,7 +441,7 @@ int sdp_cm_event_handler(struct ib_cm_id
 			/*
 			 * dump connection state if it is being recorded.
 			 */
-			(void)__sdp_conn_state_dump(conn);
+			(void)sdp_conn_state_dump(conn);
 		}
 
 		sdp_conn_unlock(conn);




More information about the general mailing list