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

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


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

Index: drivers/infiniband/ulp/sdp/sdp_pass.c
===================================================================
--- drivers/infiniband/ulp/sdp/sdp_pass.c	(revision 1929)
+++ drivers/infiniband/ulp/sdp/sdp_pass.c	(working copy)
@@ -145,7 +145,7 @@ done:
 /*
  * Functions to handle incomming passive connection requests. (REQ)
  */
-static int _sdp_cm_accept(struct sdp_opt *conn)
+static int sdp_cm_accept(struct sdp_opt *conn)
 {
 	struct ib_cm_rep_param param;
 	struct sdp_msg_hello_ack *hello_ack;
@@ -199,8 +199,8 @@ static int _sdp_cm_accept(struct sdp_opt
 	/*
 	 * endian swap
 	 */
-	_sdp_msg_cpu_to_net_bsdh(&hello_ack->bsdh);
-	_sdp_msg_cpu_to_net_hah(&hello_ack->hah);
+	sdp_msg_cpu_to_net_bsdh(&hello_ack->bsdh);
+	sdp_msg_cpu_to_net_hah(&hello_ack->hah);
 	/*
 	 * save message
 	 */
@@ -288,7 +288,7 @@ error:
 	return result;
 }
 
-static int _sdp_cm_listen_lookup(struct sdp_opt *conn)
+static int sdp_cm_listen_lookup(struct sdp_opt *conn)
 {
 	struct sdp_opt *listen_conn;
 	struct sock *listen_sk;
@@ -377,7 +377,7 @@ static int _sdp_cm_listen_lookup(struct 
 	/*
 	 * initiate a CM response message.
 	 */
-	result = _sdp_cm_accept(conn);
+	result = sdp_cm_accept(conn);
 	if (result < 0) {
 		sdp_dbg_warn(conn, "Error <%d> CM connect accept", result);
 		goto locked_err;
@@ -404,13 +404,13 @@ lookup_err:
 	return result;
 }
 
-static int _sdp_cm_hello_check(struct sdp_msg_hello *msg_hello)
+static int sdp_cm_hello_check(struct sdp_msg_hello *msg_hello)
 {
 	/*
 	 * endian swap
 	 */
-	_sdp_msg_net_to_cpu_bsdh(&msg_hello->bsdh);
-	_sdp_msg_net_to_cpu_hh(&msg_hello->hh);
+	sdp_msg_net_to_cpu_bsdh(&msg_hello->bsdh);
+	sdp_msg_net_to_cpu_hh(&msg_hello->hh);
 	/*
 	 * validation and consistency checks
 	 */
@@ -484,7 +484,7 @@ int sdp_cm_req_handler(struct ib_cm_id *
 	/*
 	 * check Hello Header, to determine if we want the connection.
 	 */
-	result = _sdp_cm_hello_check(msg_hello);
+	result = sdp_cm_hello_check(msg_hello);
 	if (result < 0) {
 		sdp_dbg_warn(NULL, "Error <%d> validating hello msg. <%08x>",
 			     result, cm_id->local_id);
@@ -534,7 +534,7 @@ int sdp_cm_req_handler(struct ib_cm_id *
 	 * update CM context to refer to the connection.
 	 */
 	conn->cm_id          = cm_id;
-	conn->cm_id->context = __hashent_arg(conn->hashent);
+	conn->cm_id->context = hashent_arg(conn->hashent);
 	/*
 	 * associate connection with a hca/port, and allocate IB.
 	 */
@@ -559,7 +559,7 @@ int sdp_cm_req_handler(struct ib_cm_id *
 	 * Find a matching listening socket, and insert new connection 
 	 * into listeners accept queue.
 	 */
-	result = _sdp_cm_listen_lookup(conn);
+	result = sdp_cm_listen_lookup(conn);
 	if (result < 0) {
 		sdp_dbg_warn(conn, "Error <%d> matching listen socket queue",
 			     result);




More information about the general mailing list